注释调试会员baobei短信

This commit is contained in:
liu 2024-06-28 09:59:05 +08:00
parent 4f7fea8273
commit 41bdd754c7

View File

@ -67,16 +67,16 @@ class StoreController extends BaseApiController
$recharge_type = $this->request->post('recharge_type',''); //微信支付条码
$code = $this->request->post('code','');//验证码
$phone = $params['mobile'];
if($code && $phone){
$remark = $phone.'_reporting';
$codeCache = Cache::get($remark);
if(empty($codeCache)){
return $this->fail('验证码不存在');
}
if ($codeCache != $code) {
return $this->fail('验证码错误');
}
}
// if($code && $phone){
// $remark = $phone.'_reporting';
// $codeCache = Cache::get($remark);
// if(empty($codeCache)){
// return $this->fail('验证码不存在');
// }
// if ($codeCache != $code) {
// return $this->fail('验证码错误');
// }
// }
if($params['price']>10000){
return $this->fail('充值金额不能大于10000');
}