|
|
@@ -52,6 +52,8 @@ import DayNightSwiper from "@/features/daynight/DayNightSwiper";
|
|
|
import showAlert from "@/components/basic/Alert";
|
|
|
import { APP_VERSION, WX_VERSION } from "@/services/http/api";
|
|
|
import { title } from "process";
|
|
|
+import { wxPubFollow } from "@/services/permission";
|
|
|
+import { setWXFollow } from "@/store/permission";
|
|
|
|
|
|
const utc = require('dayjs/plugin/utc')
|
|
|
const timezone = require('dayjs/plugin/timezone')
|
|
|
@@ -125,7 +127,7 @@ export default function Page() {
|
|
|
}
|
|
|
|
|
|
useEffect(() => {
|
|
|
-
|
|
|
+
|
|
|
dispatch(staticResources() as any);
|
|
|
timer = setInterval(() => {
|
|
|
var now = new Date()
|
|
|
@@ -202,7 +204,7 @@ export default function Page() {
|
|
|
})
|
|
|
}*/
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}, [])
|
|
|
@@ -219,7 +221,11 @@ export default function Page() {
|
|
|
//检查用户是否添加过小程序
|
|
|
checkAddToMini();
|
|
|
|
|
|
-
|
|
|
+ if (process.env.TARO_ENV == 'weapp') {
|
|
|
+ wxPubFollow({ force_refresh: true }).then(res => {
|
|
|
+ dispatch(setWXFollow((res as any).wx_pub_followed));
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
if (process.env.TARO_ENV == 'rn') {
|
|
|
if (Taro.getSystemInfoSync().platform == 'ios') {
|
|
|
@@ -372,7 +378,7 @@ export default function Page() {
|
|
|
updateNotificationStatus()
|
|
|
};
|
|
|
|
|
|
- function updateNotificationStatus(){
|
|
|
+ function updateNotificationStatus() {
|
|
|
if (process.env.TARO_ENV == 'rn') {
|
|
|
if (user.isLogin) {
|
|
|
if (Taro.getSystemInfoSync().platform == 'ios') {
|