|
@@ -53,7 +53,7 @@ func (this *Share) ProductInfo() error {
|
|
|
userId, _ := this.Session().Get("userId").(string)
|
|
|
//userId := "5c89fead1c298a4d75fef39e"
|
|
|
if userId != "" {
|
|
|
- partner := Mysql.SelectBySql("SELECT dp.type WHERE dp.uid = ? ", 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" {
|
|
|
p_data, ok = MQFW.Find("dis_product", `{"s_status":1,"model":2}`, `{"l_createdate":1}`, nil, false, -1, -1);
|