ソースを参照

Merge branch 'dev4.6.2.1' of http://192.168.3.207:8080/qmx/jy into dev4.6.2.1

yangfeng 3 年 前
コミット
7c687f4e81

+ 8 - 3
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -445,8 +445,9 @@ var SuperSearch = {
       // --> 已设置10组关键词,订阅失败提示
       // --> 小于10组
       //    --> 历史老用户-未选择区域-提示更新
-      //           --> -选择区域-关键词列表
-      //    --> 新用户-未选择区域-关键词列表
+      //           --> 选择区域-关键词列表
+      //    --> 新用户-未选择区域-订阅页面
+      //           --> 选择区域-关键词列表
 
       var isOldUser = false
       var nowKeyLength = 8
@@ -536,8 +537,12 @@ var SuperSearch = {
           });
           if(rFlag){
             SuperSearch.setSessionStorage();
+            var goHref = "/jyapp/vipsubscribe/toSetKeyWordPage";
+            if (!isSelectArea) {
+              goHref = "/jyapp/vipsubscribe/toSubVipSetPage";
+            }
             setTimeout(function(){
-              window.location.href = "/jyapp/vipsubscribe/toSetKeyWordPage";
+              window.location.href = goHref
             },100);
           }
         }

+ 1 - 0
src/jfw/modules/bigmember/src/service/analysis/forecastproject.go

@@ -48,6 +48,7 @@ func (this *Analysis) ForPContent() {
 			res.Createtime = qutil.Int64All((*data)[0]["yucetime"])
 			// res.Purchasing = (*data)[0]["results"].([]string)
 			res.Title = qutil.ObjToString((*data)[0]["title"])
+			res.Jyhref = qutil.ObjToString((*data)[0]["jyhref"])
 			return res, nil
 		}
 		return 0, nil

+ 3 - 1
src/jfw/modules/publicapply/src/subscribePush/entity/setting.go

@@ -75,8 +75,10 @@ func freeSet(area map[string]interface{}, industry []string, userId string) *Fun
 		// log.Println(areacount, "---", ppnum)
 		// log.Println(jy.BaseAreaNum, "---", fpnum)
 		if ppb {
-			if areacount > ppnum {
+			if areacount+jy.BaseAreaNum > ppnum {
 				redis.Put(jy.PowerCacheDb, fmt.Sprintf(jy.UserUpdateAreaKey, userId, ym), ppnum+1, 31*24*60*60)
+			} else {
+				log.Println(fmt.Sprintf("免费用户购买省份订阅包设置地区 扣除次数异常  userId:%s", userId))
 			}
 		} else if jy.BaseAreaNum > fpnum {
 			redis.Put(jy.PowerCacheDb, fmt.Sprintf(jy.UserUpdateAreaKey, userId, year), fpnum+1, 365*24*60*60)

+ 9 - 4
src/web/staticres/js/wxSupersearch.js

@@ -429,8 +429,9 @@ var SuperSearch = {
       // --> 已设置10组关键词,订阅失败提示
       // --> 小于10组
       //    --> 历史老用户-未选择区域-提示更新
-      //           --> -选择区域-关键词列表
-      //    --> 新用户-未选择区域-关键词列表
+      //           --> 选择区域-关键词列表
+      //    --> 新用户-未选择区域-订阅页面
+      //           --> 选择区域-关键词列表
 
       var isOldUser = false
       var nowKeyLength = 8
@@ -488,7 +489,7 @@ var SuperSearch = {
           window.location.href = "/front/vipsubscribe/toSetKeyWordPage";
         }
       }else{
-      // 免费用户
+          // 免费用户
           isOldUser = !jyAddInfo.isUpgrade
           if (nowKeyLength >= 10) {
             return EasyAlert.show("您已经超过订阅<br>关键字上限");
@@ -517,7 +518,11 @@ var SuperSearch = {
         });
         if(rFlag){
             SuperSearch.setSessionStorage();
-            window.location.href = "/front/vipsubscribe/toSetKeyWordPage";
+            var goHref = "/front/vipsubscribe/toSetKeyWordPage";
+            if (!isSelectArea) {
+              goHref = "/front/vipsubscribe/toSubVipSetPage";
+            }
+            window.location.href = goHref
         }
       }
     });