This commit is contained in:
liu 2024-07-06 18:34:10 +08:00
parent 1d57453383
commit 54f5653085

View File

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