Browse Source

语言包

lizhen_gitee 1 year ago
parent
commit
a44916769b

+ 2 - 2
application/api/controller/coach/User.php

@@ -67,7 +67,7 @@ class User extends Apic
      * @param string $captcha     验证码
      * @param string $newpassword 新密码
      */
-    public function resetpwd()
+    /*public function resetpwd()
     {
         $mobile      = $this->request->post('mobile');
         $captcha     = $this->request->post('captcha');
@@ -100,7 +100,7 @@ class User extends Apic
         } else {
             $this->error($this->auth->getError());
         }
-    }
+    }*/
 
 
     /**

+ 7 - 0
application/api/lang/en/coach/User.php

@@ -0,0 +1,7 @@
+<?php
+
+return [
+    '邮箱已被其他人使用' => 'The email is already in use by someone else',
+    '手机号已被其他人使用' => 'The phone number is already in use by someone else',
+    '资料更新完成' => 'Data update completed',
+];

+ 0 - 0
application/api/lang/zh-cn.php → application/api/lang/zh-cnasdf.php


+ 0 - 10
application/common/library/Authcoach.php

@@ -120,17 +120,7 @@ class Authcoach
                 return false;
             }
 
-           /* if(!$user->company_id){
-                $this->setError('Account not exist');
-                return false;
-            }
-            $companyinfo = Company::get($user->company_id);
-            if(!$companyinfo){
-                $this->setError('Account not exist');
-                return false;
-            }
 
-            $user->company = $companyinfo;*/
 
             $this->_user = $user;
             $this->_logined = true;