WH01243 4 жил өмнө
parent
commit
1e1249f5aa

+ 1 - 1
src/jfw/modules/distribution/src/service/action/share.go

@@ -55,7 +55,7 @@ func (this *Share) ProductInfo() error {
 		if userId != "" {
 			partner := Mysql.SelectBySql("SELECT type from dis_partner  WHERE uid = ? ", userId)
 			p_data, ok := MQFW.Find("dis_product", `{"s_status":1,"model":1}`, `{"l_createdate":1}`, nil, false, -1, -1);
-			if ((*partner)[0]["type"]).(string) == "2" {
+			if (fmt.Sprint((*partner)[0]["type"])) == "2" {
 				p_data, ok = MQFW.Find("dis_product", `{"s_status":1,"model":2}`, `{"l_createdate":1}`, nil, false, -1, -1);
 			}
 			if ok && p_data != nil {