修复错误

This commit is contained in:
mkm 2023-04-15 10:29:00 +08:00
parent b15b790655
commit 5d0c1c3590

View File

@ -93,7 +93,6 @@ class StoreMicropayOrder extends BaseController
{ {
$cartId = (array)$this->request->param('cart_id', []); $cartId = (array)$this->request->param('cart_id', []);
$mer_id = $this->request->param('mer_id', 0); $mer_id = $this->request->param('mer_id', 0);
$auth_code = $this->request->param('auth_code', 0);
$post=[]; $post=[];
$couponIds=[]; $couponIds=[];
$takes=[]; $takes=[];
@ -107,9 +106,7 @@ class StoreMicropayOrder extends BaseController
if (!$mer_id&&$mer_id!=0){ if (!$mer_id&&$mer_id!=0){
return app('json')->fail('商户id不能为空'); return app('json')->fail('商户id不能为空');
} }
if (!$auth_code&&$auth_code!=0){
return app('json')->fail('付款码不能为空');
}
$addressId=Db::name('user_address')->where('uid',$uid)->find(); $addressId=Db::name('user_address')->where('uid',$uid)->find();
$merchant=Db::name('merchant')->where('mer_id',$mer_id)->find(); $merchant=Db::name('merchant')->where('mer_id',$mer_id)->find();
if (!$addressId){ if (!$addressId){