修改参数报错

This commit is contained in:
liu 2024-06-15 16:38:53 +08:00
parent a75b72224e
commit 39173539d4
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class SystemStoreLists extends BaseAdminDataLists implements ListsSearchInterfac
$latitude = $this->request->get('latitude','');
$longitude = $this->request->get('longitude','');
if(empty($longitude) || empty($latitude)){
throw new MyBusinessException('缺失经纬度');
throw new Exception('缺失经纬度');
}
$where[]=['is_show','=',YesNoEnum::YES];
$data = SystemStore::where($this->searchWhere)->where($where)

View File

@ -137,7 +137,7 @@ class StoreOrderController extends BaseAdminController
if(empty($user)){
return $this->fail('无该用户请检查');
}
$order = StoreOrderLogic::cartIdByOrderInfo($params['cartId'], null, $user, $params);
$order = StoreOrderLogic::cartIdByOrderInfo($params['cart_id'], null, $user, $params);
if($order['order']['pay_price'] > $user['purchase_funds']){
return $this->fail('当前用户采购款不足支付');
}