注释没有的接口(消息订阅)
parent
59c6613102
commit
9c203d6e71
2
.env
2
.env
|
|
@ -5,7 +5,7 @@ SHOPRO_VERSION = v1.8.3
|
|||
SHOPRO_BASE_URL = http://api-dashboard.yudao.iocoder.cn
|
||||
|
||||
# 后端接口 - 测试环境(通过 process.env.NODE_ENV = development)
|
||||
SHOPRO_DEV_BASE_URL = http://127.0.0.1:48080
|
||||
SHOPRO_DEV_BASE_URL = http://100.98.111.36:48080
|
||||
### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc
|
||||
|
||||
# 后端接口前缀(一般不建议调整)
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@
|
|||
"versionCode": 100
|
||||
},
|
||||
"mp-weixin": {
|
||||
"appid": "wx63c280fe3248a3e7",
|
||||
"appid": "wx9a0a5b259d852380",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"minified": true,
|
||||
|
|
@ -236,4 +236,4 @@
|
|||
"_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639",
|
||||
"locale": "zh-Hans",
|
||||
"fallbackLocale": "zh-Hans"
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ let subscribeEventList = [];
|
|||
// 加载微信小程序
|
||||
function load() {
|
||||
checkUpdate();
|
||||
getSubscribeTemplate();
|
||||
// getSubscribeTemplate();
|
||||
}
|
||||
|
||||
// 微信小程序静默授权登陆
|
||||
|
|
@ -163,12 +163,12 @@ const checkUpdate = async (silence = true) => {
|
|||
};
|
||||
|
||||
// 获取订阅消息模板
|
||||
async function getSubscribeTemplate() {
|
||||
const { code, data } = await third.wechat.getSubscribeTemplateList();
|
||||
if (code === 0) {
|
||||
subscribeEventList = data;
|
||||
}
|
||||
}
|
||||
// async function getSubscribeTemplate() {
|
||||
// const { code, data } = await third.wechat.getSubscribeTemplateList();
|
||||
// if (code === 0) {
|
||||
// subscribeEventList = data;
|
||||
// }
|
||||
// }
|
||||
|
||||
// 订阅消息
|
||||
function subscribeMessage(event) {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ const app = defineStore({
|
|||
this.platform = {
|
||||
share: {
|
||||
methods: ["poster", "link"],
|
||||
linkAddress: "http://127.0.0.1:3000", // TODO 芋艿:可以考虑改到 .env 那
|
||||
linkAddress: "http://100.98.111.36:3000", // TODO 芋艿:可以考虑改到 .env 那
|
||||
posterInfo: {
|
||||
"user_bg": "/static/img/shop/config/user-poster-bg.png",
|
||||
"goods_bg": "/static/img/shop/config/goods-poster-bg.png",
|
||||
|
|
|
|||
Loading…
Reference in New Issue