lizhen_gitee 1 yıl önce
ebeveyn
işleme
c5de6b42e7

+ 1 - 1
application/api/controller/Sms.php

@@ -74,7 +74,7 @@ class Sms extends Api
         if ($ret) {
             $this->success(__('发送成功'));
         } else {
-            $this->error(__('发送失败,请检查短信配置是否正确'));
+            $this->error(__('发送失败'));
         }
     }
 

+ 1 - 1
application/api/controller/Trylesson.php

@@ -86,7 +86,7 @@ class Trylesson extends Api
         $id = Db::name('trylesson_order')->insertGetId($data);
         if(!$id){
             Db::rollback();
-            $this->error('申请失败');
+            $this->error('预约失败');
         }
 
         //支付订单下单

+ 1 - 1
application/api/controller/User.php

@@ -182,7 +182,7 @@ class User extends Api
             'Facebook',
             'Instagram',
             'Family and Friends',
-            'Googld',
+            'Google',
             'Whatsapp',
             'Others',
         ];

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

@@ -116,7 +116,7 @@ class User extends Apic
     {
         $field = [
             'mobile',
-            'email',
+            //'email',
             'avatar',
             'firstname',
             'lastname',
@@ -125,12 +125,12 @@ class User extends Apic
 
         $data = request_post_hub($field);
 
-        if(isset($data['email'])){
+        /*if(isset($data['email'])){
             $check_email = Db::name('coach')->where('email',$data['email'])->where('id','neq',$this->auth->id)->find();
             if($check_email){
                 $this->error('邮箱已被其他人使用');
             }
-        }
+        }*/
 
         if(isset($data['mobile'])){
             $check_mobile = Db::name('coach')->where('mobile',$data['mobile'])->where('id','neq',$this->auth->id)->find();

+ 8 - 0
application/api/lang/en/Sms.php

@@ -0,0 +1,8 @@
+<?php
+
+return [
+    '手机号不正确' => 'Mobile phone number is incorrect',
+    '发送频繁' => 'Send frequently',
+    '发送成功' => 'Sent successfully',
+    '发送失败' => 'fail in send',
+];

+ 7 - 0
application/api/lang/en/Trylesson.php

@@ -0,0 +1,7 @@
+<?php
+
+return [
+    '该试课已下架' => 'This trial course has been removed from the shelves',
+    '预约失败' => 'Reservation failed',
+    '下单失败' => 'Order failed',
+];

+ 7 - 0
application/api/lang/en/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',
+];