zqwang 1 year ago
parent
commit
d0fe7f5c9f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/Manage/Http/Controllers/MiniprogramController.php

+ 2 - 1
modules/Manage/Http/Controllers/MiniprogramController.php

@@ -87,6 +87,7 @@ class MiniprogramController extends CatchController
     {
     {
         $validate_result = $request->validated();
         $validate_result = $request->validated();
         $validate_result['remark'] = $request->post('remark','') ?? '';
         $validate_result['remark'] = $request->post('remark','') ?? '';
+        $validate_result['pay_merchant_id'] = $request->post('pay_merchant_id',0);
         if (getProp($validate_result,'pay_merchant_id',0)){
         if (getProp($validate_result,'pay_merchant_id',0)){
             $info = DB::table('pay_merchants')->where('id',$validate_result['pay_merchant_id'])->first();
             $info = DB::table('pay_merchants')->where('id',$validate_result['pay_merchant_id'])->first();
             if (empty($info)){
             if (empty($info)){
@@ -108,7 +109,7 @@ class MiniprogramController extends CatchController
             $validate_result['pay_merchant_id'] = 0;
             $validate_result['pay_merchant_id'] = 0;
             $validate_result['pay_merchant_info'] = [];
             $validate_result['pay_merchant_info'] = [];
         }
         }
-
+        
         return $this->miniprogram->create($validate_result)->toArray();
         return $this->miniprogram->create($validate_result)->toArray();
 
 
     }
     }