【类 型】:fix

【原  因】:前端不提交站点id 也会创建订单
【过  程】:检查提交订信息 是是否有收货站点id 没有则跳出
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
sszdot 2024-12-17 15:40:20 +08:00
parent 854fe2c3fc
commit 9bb7e8e3ad

View File

@ -139,6 +139,10 @@ class CheckController extends PublicController
exit(); //没有电话 有问题跳出
}
if ($_REQUEST['site_id'] != "") {
echo json_encode(array('status' => 0, 'msg' => '收货地址未填'));
exit(); //没有收货地址 有问题跳出
}
$siteDb = D('receive_site');
$whereSite['id'] = $_REQUEST['site_id'];
$whereSite['shop_id'] = $_REQUEST['shop_id'];