|
@@ -219,7 +219,7 @@ class User extends Api
|
|
|
$code = $this->request->post('country_code');
|
|
$code = $this->request->post('country_code');
|
|
|
$mobile = $this->request->post('mobile');
|
|
$mobile = $this->request->post('mobile');
|
|
|
$captcha = $this->request->post('captcha');
|
|
$captcha = $this->request->post('captcha');
|
|
|
- $token = $this->request->post('token', $this->request->ip());
|
|
|
|
|
|
|
+ $token = $this->request->post('token', ip2long($this->request->ip()));
|
|
|
// $id = $this->request->ip();
|
|
// $id = $this->request->ip();
|
|
|
if(!captcha_check($captcha,$token)){
|
|
if(!captcha_check($captcha,$token)){
|
|
|
$this->error(__('验证码错误'));
|
|
$this->error(__('验证码错误'));
|