|
...
|
...
|
@@ -79,4 +79,24 @@ class RatingController extends BaseController |
|
|
|
$ratingLogic->ratingSave();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :问卷调查验证验证码
|
|
|
|
* @name :VerificationCode
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/1/22 11:23
|
|
|
|
*/
|
|
|
|
public function verificationCode(){
|
|
|
|
$smsModel = new SmsLog();
|
|
|
|
$smsInfo = $smsModel->formatQuery(['mobile'=>$this->param['mobile'],'type'=>$smsModel::TYPE_CORING])->orderBy('id','desc')->first();
|
|
|
|
if(!empty($smsInfo)){
|
|
|
|
if(($this->param['code'] != $smsInfo['code']) || ($smsInfo['created_at'] < date('Y-m-d H:i:s',time() - 300))){
|
|
|
|
$this->response('验证码已过期或验证码错误',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$this->response('验证码错误',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|