1.0

parent c804081c
...@@ -37,7 +37,7 @@ class HelperController extends Controller { ...@@ -37,7 +37,7 @@ class HelperController extends Controller {
//验证注册码的正确与否 //验证注册码的正确与否
private function verifyCaptcha($request) { private function verifyCaptcha($request) {
$code = $request->input("code"); $code = $request->input("code");
if (Session::get('yunxin_code',true) == $code) { if (Session::get('yunxin_captcha',true) == $code) {
//用户输入验证码正确 //用户输入验证码正确
Export([0,'success']); Export([0,'success']);
} else { } else {
......
...@@ -156,7 +156,7 @@ class SupplierAccountModel extends Model ...@@ -156,7 +156,7 @@ class SupplierAccountModel extends Model
public function forgetMobileCode($input){ public function forgetMobileCode($input){
$mobile = $input['mobile']; //手机号码 $mobile = $input['mobile']; //手机号码
$code = $input['code']; //图形验证码 $code = $input['code']; //图形验证码
if (Session::get('yunxin_code',true) != $code) { if (Session::get('yunxin_captcha',true) != $code) {
//用户输入验证码错误 //用户输入验证码错误
Export([1001,'验证码输入错误']); Export([1001,'验证码输入错误']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment