Procházet zdrojové kódy

用户与教练的whatapp账号

lizhen_gitee před 9 měsíci
rodič
revize
49acd884f4

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

@@ -179,6 +179,7 @@ class User extends Api
             'notice_email'     => input('notice_email',0),
             'notice_whatsapp'  => input('notice_whatsapp',0),
             'notice_phonecall' => input('notice_phonecall',0),
+            'whatsapp'         => input('whatsapp',''),
 
         ];
         $ret = $this->auth->register('', $password, $email, $fullmobile, $extend);

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

@@ -121,6 +121,7 @@ class User extends Apic
             'firstname',
             'lastname',
             'lang',
+            'whatsapp',
         ];
 
         $data = request_post_hub($field);

+ 1 - 1
public/assets/js/backend/user/user.js

@@ -46,7 +46,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'notice_email', title: __('Notice_email'), searchList: {"1":__('Notice_email 1'),"0":__('Notice_email 0')}, formatter: Table.api.formatter.normal},
                         {field: 'notice_whatsapp', title: __('Notice_whatsapp'), searchList: {"1":__('Notice_whatsapp 1'),"0":__('Notice_whatsapp 0')}, formatter: Table.api.formatter.normal},
                         {field: 'notice_phonecall', title: __('Notice_phonecall'), searchList: {"1":__('Notice_phonecall 1'),"0":__('Notice_phonecall 0')}, formatter: Table.api.formatter.normal},
-//                        {field: 'whatsapp', title: __('Whatsapp'), operate: 'LIKE'},
+                        {field: 'whatsapp', title: __('Whatsapp'), operate: 'LIKE'},
 
 //                        {field: 'level', title: __('Level')},
 //                        {field: 'gender', title: __('Gender')},