fixed
This commit is contained in:
@@ -30,20 +30,20 @@ use wanghua\general_utility_tools_php\wechat\UserAuth;
|
||||
class Userstt extends BaseHttpApi
|
||||
{
|
||||
/**
|
||||
* desc:疼痛科-根据游戏id查询用户
|
||||
* desc:疼痛科-根据id查询用户
|
||||
* api/Userstt/getUserById
|
||||
* 参数:
|
||||
* gameid 用户id
|
||||
* dataid 用户id
|
||||
* author:wh
|
||||
*/
|
||||
function getUserById(){
|
||||
return Mmodel::catchJson(function (){
|
||||
$gameid = input('gameid');
|
||||
if(empty($gameid)){
|
||||
$dataid = input('dataid');
|
||||
if(empty($dataid)){
|
||||
return Tools::set_fail('参数错误');
|
||||
}
|
||||
$data = Db::table(TabConf::$fa_users)
|
||||
->where('id',$gameid*1)
|
||||
$data = Db::table('fa_tt_users')
|
||||
->where('id',$dataid)
|
||||
->find();
|
||||
return Tools::set_res(200,'查询成功',$data);
|
||||
});
|
||||
@@ -77,7 +77,7 @@ class Userstt extends BaseHttpApi
|
||||
if(empty($password)){
|
||||
return Tools::set_fail('参数错误:2');
|
||||
}
|
||||
$user = Db::table(TabConf::$fa_users)
|
||||
$user = Db::table('fa_tt_users')
|
||||
->where('username',$username)
|
||||
->find();
|
||||
if(empty($user)){
|
||||
@@ -98,7 +98,7 @@ class Userstt extends BaseHttpApi
|
||||
$ticketstr = md5($user['username'].$expires);
|
||||
|
||||
//修改有效期
|
||||
Db::table(TabConf::$fa_users)
|
||||
Db::table('fa_tt_users')
|
||||
->data([
|
||||
'ticket'=>$ticketstr,
|
||||
'expires'=>$expires,//7天
|
||||
@@ -111,7 +111,7 @@ class Userstt extends BaseHttpApi
|
||||
}
|
||||
|
||||
/**
|
||||
* desc:疼痛科-保存听译聊天记录
|
||||
* desc:疼痛科-保存聊天记录
|
||||
*
|
||||
* api/Userstt/saveChatHistory
|
||||
*
|
||||
@@ -156,7 +156,7 @@ class Userstt extends BaseHttpApi
|
||||
if(empty($ticket)){
|
||||
return Tools::set_fail('ticket必须');
|
||||
}
|
||||
$user = Db::table('fa_ty_users')->where('ticket',$ticket)->find();
|
||||
$user = Db::table('fa_tt_users')->where('ticket',$ticket)->find();
|
||||
//修改基本信息
|
||||
$data = [
|
||||
'doctor'=>$user['username'],//医生
|
||||
|
||||
Reference in New Issue
Block a user