【类 型】:factor

【原  因】:
【过  程】:检查二维码里面站点id 是否存在
【影  响】:

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

View File

@ -147,6 +147,10 @@ class CheckController extends PublicController
$whereSite['id'] = $_REQUEST['site_id'];
$whereSite['shop_id'] = $_REQUEST['shop_id'];
$site = $siteDb->where($whereSite)->find();
if (!$site) {
echo json_encode(array('status' => 0, 'msg' => '收货地址不合法'));
exit(); //没有收货地址 有问题跳出
}
$data['receive_site_id'] = $_REQUEST['site_id'];
$data['receive_site_name'] = $site['sitename'];
$data['product_snapshot'] = json_encode($product_snapshot, JSON_UNESCAPED_UNICODE);