【类 型】:fix

【原  因】:小程序端提交的价格 再后端做最低起送价校验
【过  程】:
【影  响】:
This commit is contained in:
air 2025-01-21 18:41:48 +08:00
parent 9a08986b36
commit a9b0db5fd8

View File

@ -117,6 +117,12 @@ class CheckController extends PublicController
exit(); //有问题跳出
}
//校验是否达到最低起送价
if ($total_price < $shop['price_min']) {
echo json_encode(array('status' => 0, 'msg' => '未达到最低起送价!'));
exit(); //有问题跳出
}
// 校验备注字段
$remark = isset($_REQUEST['remark']) ? $_REQUEST['remark'] : '';
if (mb_strlen($remark, 'UTF-8') > 35) { // 限制最多 35 个字