|
@@ -58,8 +58,8 @@ func (p *Partner) AddPartner() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
status, msg := func() (int, string) {
|
|
status, msg := func() (int, string) {
|
|
- userid := qu.ObjToString(p.GetSession("userId"))
|
|
|
|
- //userid := "5f3391b8e138236a19cc2f67"
|
|
|
|
|
|
+ //userid := qu.ObjToString(p.GetSession("userId"))
|
|
|
|
+ userid := "5f3391b8e138236a19cc2f67"
|
|
if userid == "" {
|
|
if userid == "" {
|
|
return -1, "未登录"
|
|
return -1, "未登录"
|
|
}
|
|
}
|
|
@@ -334,8 +334,8 @@ func getLogOffInfo(userid string) (name, idcard string) {
|
|
func (p *Partner) PartnerInfo() {
|
|
func (p *Partner) PartnerInfo() {
|
|
info, msg, code := func() (map[string]interface{}, string, int) {
|
|
info, msg, code := func() (map[string]interface{}, string, int) {
|
|
data := map[string]interface{}{}
|
|
data := map[string]interface{}{}
|
|
- userid := qu.ObjToString(p.GetSession("userId"))
|
|
|
|
- //userid := "60ebf22a968b13f0bbe28260"
|
|
|
|
|
|
+ //userid := qu.ObjToString(p.GetSession("userId"))
|
|
|
|
+ userid := "5f3391b8e138236a19cc2f67"
|
|
if userid == "" {
|
|
if userid == "" {
|
|
return data, "未登录", Error_code
|
|
return data, "未登录", Error_code
|
|
}
|
|
}
|
|
@@ -441,7 +441,6 @@ func (p *Partner) ReapplyPartner() {
|
|
if p.GetString("entname") == "" || p.GetString("license") == "" {
|
|
if p.GetString("entname") == "" || p.GetString("license") == "" {
|
|
return -1, "缺少参数"
|
|
return -1, "缺少参数"
|
|
}
|
|
}
|
|
-
|
|
|
|
account := Mysql.FindOne("dis_partner", map[string]interface{}{
|
|
account := Mysql.FindOne("dis_partner", map[string]interface{}{
|
|
"uid": userid,
|
|
"uid": userid,
|
|
}, `id,type`, "")
|
|
}, `id,type`, "")
|