修改收银订单采购款支付校验
This commit is contained in:
parent
a70d3f7dbf
commit
66a6915e4f
@ -28,6 +28,7 @@ use app\common\model\user_recharge\UserRecharge;
|
|||||||
use app\common\service\pay\PayService;
|
use app\common\service\pay\PayService;
|
||||||
use app\store\validate\store_order\StoreOrderValidate;
|
use app\store\validate\store_order\StoreOrderValidate;
|
||||||
use support\Cache;
|
use support\Cache;
|
||||||
|
use support\exception\BusinessException;
|
||||||
use support\Log;
|
use support\Log;
|
||||||
use think\Exception;
|
use think\Exception;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
@ -177,8 +178,8 @@ class StoreOrderController extends BaseAdminController
|
|||||||
if ($pay_type == PayEnum::PURCHASE_FUNDS) {
|
if ($pay_type == PayEnum::PURCHASE_FUNDS) {
|
||||||
$remark = $uid . '_smsPay';
|
$remark = $uid . '_smsPay';
|
||||||
$code = Cache::get($remark);
|
$code = Cache::get($remark);
|
||||||
if ($code && isset($params['code']) && $code != $params['code']) {
|
if (!$code || !isset($params['sms_code']) || $code != $params['sms_code']) {
|
||||||
throw new Exception('验证码错误');
|
throw new BusinessException('验证码错误');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user