Authored by 陈峰

commit

@@ -50,10 +50,10 @@ const domains = { @@ -50,10 +50,10 @@ const domains = {
50 module.exports = { 50 module.exports = {
51 app: 'h5', 51 app: 'h5',
52 appVersion: '6.6.0', // 调用api的版本 52 appVersion: '6.6.0', // 调用api的版本
53 - appName: 'yohobuywap-node', 53 + appName: 'yohobuywap-node-activity',
54 port: 6001, 54 port: 6001,
55 siteUrl: '//m.yohobuy.com', 55 siteUrl: '//m.yohobuy.com',
56 - assetUrl: '//activity.yoho.cn:5001/yohobuywap-node/', 56 + assetUrl: '//activity.yoho.cn:5001/yohobuywap-node-activity/',
57 testCode: 'yoho4946abcdef#$%&!@', 57 testCode: 'yoho4946abcdef#$%&!@',
58 domains: domains, 58 domains: domains,
59 59
@@ -184,7 +184,7 @@ module.exports = { @@ -184,7 +184,7 @@ module.exports = {
184 184
185 if (isProduction) { 185 if (isProduction) {
186 Object.assign(module.exports, { 186 Object.assign(module.exports, {
187 - assetUrl: '//cdn.yoho.cn/yohobuywap-node/', 187 + assetUrl: '//cdn.yoho.cn/yohobuywap-node-activity/',
188 domains: { 188 domains: {
189 api: 'http://api.yoho.yohoops.org/', 189 api: 'http://api.yoho.yohoops.org/',
190 ufo: 'http://ufoapi.yohoops.org/', 190 ufo: 'http://ufoapi.yohoops.org/',
@@ -296,7 +296,7 @@ if (isProduction) { @@ -296,7 +296,7 @@ if (isProduction) {
296 }); 296 });
297 } else if (isTest) { 297 } else if (isTest) {
298 Object.assign(module.exports, { 298 Object.assign(module.exports, {
299 - assetUrl: '//cdn.yoho.cn/yohobuywap-node/', 299 + assetUrl: '//cdn.yoho.cn/yohobuywap-node-activity/',
300 domains: { 300 domains: {
301 api: process.env.TEST_API || 'http://api-test3.dev.yohocorp.com/', 301 api: process.env.TEST_API || 'http://api-test3.dev.yohocorp.com/',
302 ufo: process.env.UFO_API || 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/', 302 ufo: process.env.UFO_API || 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/',
1 -importScripts("https://cdn.yoho.cn/workbox/workbox-sw.js", "https://cdn.yoho.cn/workbox/workbox-core.prod.js", "https://cdn.yoho.cn/workbox/workbox-precaching.prod.js", "https://cdn.yoho.cn/workbox/workbox-routing.prod.js", "https://cdn.yoho.cn/workbox/workbox-cache-expiration.prod.js", "https://cdn.yoho.cn/workbox/workbox-strategies.prod.js", "//cdn.yoho.cn/yohobuywap-node/precache-manifest.5892d915861d21c8df45a91e2d832243.js"); 1 +importScripts("https://cdn.yoho.cn/workbox/workbox-sw.js", "https://cdn.yoho.cn/workbox/workbox-core.prod.js", "https://cdn.yoho.cn/workbox/workbox-precaching.prod.js", "https://cdn.yoho.cn/workbox/workbox-routing.prod.js", "https://cdn.yoho.cn/workbox/workbox-cache-expiration.prod.js", "https://cdn.yoho.cn/workbox/workbox-strategies.prod.js", "//cdn.yoho.cn/yohobuywap-node-activity/precache-manifest.6bf90331e7579a08f1f2284eb0839c70.js");
2 2
3 /* eslint-env worker */ 3 /* eslint-env worker */
4 /* global FetchEvent */ 4 /* global FetchEvent */
@@ -15,7 +15,7 @@ const NAME_CACHE_PREFIX = 'yoho-cache'; @@ -15,7 +15,7 @@ const NAME_CACHE_PREFIX = 'yoho-cache';
15 const precaches = [ 15 const precaches = [
16 { 16 {
17 url: '/offline.html', 17 url: '/offline.html',
18 - revision: 'offline-revision-0.0.2' 18 + revision: 'offline-revision-0.0.3'
19 }, 19 },
20 { 20 {
21 url: '//cdn.yoho.cn/pwa/404.png', 21 url: '//cdn.yoho.cn/pwa/404.png',