|
@@ -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();
|
|
|
|
|
|
}
|
|
}
|