修改传奇充值商户的账户显示

This commit is contained in:
kongyuebin
2021-04-30 15:55:02 +08:00
parent 5ee1450a21
commit c48d2f3e2c
15 changed files with 197 additions and 227 deletions

View File

@@ -18,9 +18,9 @@ func (c *BasicController) Prepare() {
userName, ok := c.GetSession("userName").(string)
if ok {
logs.Info("该用户已经登录, userName", userName)
userInfo := fast.GetUserInfoByUserName(userName)
if userInfo.Mobile != "" {
c.Data["nickName"] = userInfo.UserName
userInfo := fast.GetMerchantInfoByUserName(userName)
if userInfo.LoginAccount != "" {
c.Data["nickName"] = userInfo.MerchantName
}
} else {
c.Data["nickName"] = "史蒂芬-库里"