Эх сурвалжийг харах

feat: 微信端默认切换超级订阅

zhangyuhan 3 жил өмнө
parent
commit
36f06401f3

+ 12 - 1
src/web/templates/weixin/historypush.html

@@ -1022,7 +1022,18 @@
             url: '/bigmember/use/isAdd',
             url: '/bigmember/use/isAdd',
             type: 'POST',
             type: 'POST',
             success: function (res) {
             success: function (res) {
-                userNewType = res.data.isUpgrade
+                if (res && res.data) {
+                    userNewType = res.data.isUpgrade
+                    if (res.data.vipStatus > 0) {
+                        $.ajax({
+                            url: '/publicapply/subscribe/vipSwitch',
+                            type: 'POST',
+                            data: {
+                                vt: 'v',
+                            }
+                        })
+                    }
+                }
             }
             }
         })
         })
     }
     }