短信校验修改
This commit is contained in:
parent
13cbad9329
commit
4bf661fba0
@ -136,13 +136,15 @@ class StoreOrderController extends BaseAdminController
|
||||
public function checkSms()
|
||||
{
|
||||
$params = (new StoreOrderValidate())->post()->goCheck('check');
|
||||
|
||||
$params['store_id'] = $this->request->adminInfo['store_id']; //当前登录的店铺id,用于判断是否是当前店铺的订单
|
||||
$user= User::where('id',$params['uid'])->find();
|
||||
if(empty($user)){
|
||||
return $this->fail('无该用户请检查');
|
||||
}
|
||||
$order = StoreOrderLogic::cartIdByOrderInfo($params['cart_id'], null, $user, $params);
|
||||
if(!$order){
|
||||
return $this->fail(StoreOrderLogic::getError());
|
||||
}
|
||||
if($order['order']['pay_price'] > $user['purchase_funds']){
|
||||
return $this->fail('当前用户采购款不足支付');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user