浏览代码

add order pay way cent

abiao 5 年之前
父节点
当前提交
e9279a4b54
共有 1 个文件被更改,包括 3 次插入14 次删除
  1. 3 14
      go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go

+ 3 - 14
go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go

@@ -56,10 +56,9 @@ import (
 // 校验当前用户是否登录
 func (self *UserController) CheckLogin() {
 	type UserInfo struct {
-		UserId     int64 `json:"user_id"`
-		WxUserId   int64 `json:"wx_user_id"`
-		MerchantId int64 `json:"merchant_id"`
-		Rank       int64 `json:"rank"` //级别
+		UserId   int64 `json:"user_id"`
+		WxUserId int64 `json:"wx_user_id"`
+		Rank     int64 `json:"rank"` //级别
 	}
 	userInfo := new(UserInfo)
 	useCache, err := self.GetBool("cache", true)
@@ -75,16 +74,6 @@ func (self *UserController) CheckLogin() {
 		userInfo.WxUserId = wxUser.Id
 	}
 
-	// 商户信息, 如果不是商户,则返回 0
-	/*
-		merchant_user_id := int64(0)
-		if curUser != nil {
-			merchant_user_id = curUser.Id
-		}
-		merchantUser := merchant_model.GetMerchantUserRelationByUserId(merchant_user_id, false) //一个商户对应多个用户
-		if merchantUser != nil {
-			userInfo.MerchantId = merchantUser.MerchantId
-		}*/
 	if wxUser != nil {
 		userInfo.Rank = wxUser.Rank
 	}