|
|
@ -130,10 +130,10 @@ class Operator_model extends CI_Model
|
|
|
|
//获取作者的昵称
|
|
|
|
//获取作者的昵称
|
|
|
|
function get_author_nikename($user_code){
|
|
|
|
function get_author_nikename($user_code){
|
|
|
|
$sql="
|
|
|
|
$sql="
|
|
|
|
SELECT top 1 isnull(UserInfo.NickName,'') as NickName,UserInfo.customPic, UserInfo.userid, UserInfo.sex, UserInfo.Email,Userinfo.intro
|
|
|
|
SELECT top 1 isnull(uio.NickName,'') as NickName,uio.customPic, uio.userid, uio.sex, uio.Email,uio.intro
|
|
|
|
,OPI_SN,OPI_Name,OPI_Email,OPI_FirstName,OPI_Code
|
|
|
|
,OPI_SN,OPI_Name,OPI_Email,OPI_FirstName,OPI_Code
|
|
|
|
FROM tourmanager.dbo.OperatorInfo left JOIN
|
|
|
|
FROM tourmanager.dbo.OperatorInfo left JOIN
|
|
|
|
UserInfo ON UserInfo.Email = tourmanager.dbo.OperatorInfo.OPI_Email
|
|
|
|
tourmanager.dbo.UserInfo uio ON uio.Email = tourmanager.dbo.OperatorInfo.OPI_Email
|
|
|
|
WHERE tourmanager.dbo.OperatorInfo.OPI_Code = '{$user_code}'
|
|
|
|
WHERE tourmanager.dbo.OperatorInfo.OPI_Code = '{$user_code}'
|
|
|
|
|
|
|
|
|
|
|
|
";
|
|
|
|
";
|
|
|
|