Răsfoiți Sursa

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

zhangyuhan 3 ani în urmă
părinte
comite
36f06401f3
1 a modificat fișierele cu 12 adăugiri și 1 ștergeri
  1. 12 1
      src/web/templates/weixin/historypush.html

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

@@ -1022,7 +1022,18 @@
             url: '/bigmember/use/isAdd',
             type: 'POST',
             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',
+                            }
+                        })
+                    }
+                }
             }
         })
     }