判断
This commit is contained in:
parent
1d57453383
commit
54f5653085
@ -8,6 +8,7 @@ use app\api\logic\order\OrderLogic;
|
|||||||
use app\api\validate\OrderValidate;
|
use app\api\validate\OrderValidate;
|
||||||
use app\common\model\order\Cart;
|
use app\common\model\order\Cart;
|
||||||
use app\common\model\user\User;
|
use app\common\model\user\User;
|
||||||
|
use app\common\model\user_sign\UserSign;
|
||||||
use app\store\lists\store_order\StoreOrderLists;
|
use app\store\lists\store_order\StoreOrderLists;
|
||||||
use app\common\controller\Definitions;
|
use app\common\controller\Definitions;
|
||||||
use app\common\enum\PayEnum;
|
use app\common\enum\PayEnum;
|
||||||
@ -399,10 +400,14 @@ class StoreOrderController extends BaseAdminController
|
|||||||
return $this->fail('支付条码不能为空');
|
return $this->fail('支付条码不能为空');
|
||||||
}
|
}
|
||||||
$params = $this->request->post();
|
$params = $this->request->post();
|
||||||
UserShipLogic::user_ship($params);
|
$count = UserRecharge::where('uid',$params['uid'])->where('paid',1)->count();
|
||||||
if(UserShipLogic::hasError()){
|
if($count < 1){
|
||||||
return $this->fail(UserShipLogic::getError());
|
UserShipLogic::user_ship($params);
|
||||||
|
if(UserShipLogic::hasError()){
|
||||||
|
return $this->fail(UserShipLogic::getError());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'store_id' => $this->adminInfo['store_id'],
|
'store_id' => $this->adminInfo['store_id'],
|
||||||
'uid' => $params['uid'],
|
'uid' => $params['uid'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user