|
@@ -82,7 +82,10 @@ func (this *Active) SubStatus() error {
|
|
|
"liveactiveRTB": redis.GetInt("other", "liveactiveRTB"), //获取已购买人数
|
|
|
}
|
|
|
if userId != "" {
|
|
|
- res["userId"] = util.SE.EncodeString(userId)
|
|
|
+ openId, _ := this.Session().Get("s_m_openid").(string)
|
|
|
+ if CheckUserIsSubscribe(openId) {
|
|
|
+ res["userId"] = util.SE.EncodeString(userId)
|
|
|
+ }
|
|
|
var query = map[string]interface{}{
|
|
|
"s_userid": userId,
|
|
|
"order_type": "wx", //微信预约
|