Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
7 years ago
Commit
649d1b2e5452e9e7db46e8f961fe264f08f1e13e
2 parents
c645ba4c
c7469ba1
Merge remote-tracking branch 'origin/feature/miniPath' into release/6.4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
apps/api/router.js
apps/product/controllers/new-detail.js
apps/product/controllers/new-shop.js
apps/api/router.js
View file @
649d1b2
...
...
@@ -24,6 +24,6 @@ router.post('/hf/v1', hotfix.v1);
router
.
post
(
'/rn/v1'
,
rn
.
v1
);
router
.
get
(
'/.well-known/apple-app-site-association'
,
apple
.
appSiteAssociation
);
router
.
get
(
'/wechat/miniapp.jpg'
,
forward
.
miniapp
);
router
.
get
(
'/
api/
wechat/miniapp.jpg'
,
forward
.
miniapp
);
module
.
exports
=
router
;
...
...
apps/product/controllers/new-detail.js
View file @
649d1b2
...
...
@@ -95,7 +95,7 @@ const newDetail = {
mipDes
:
description
,
mipUrl
:
`
$
{
req
.
protocol
}:
//m.yohobuy.com/product/${result.productSkn}.html`
},
miniPath
:
helpers
.
urlFormat
(
'/wechat/miniapp.jpg'
,
{
miniPath
:
helpers
.
urlFormat
(
'/
api/
wechat/miniapp.jpg'
,
{
miniapp_type
:
0
,
param
:
result
.
productSkn
,
miniQrType
:
1
...
...
apps/product/controllers/new-shop.js
View file @
649d1b2
...
...
@@ -194,7 +194,7 @@ const shop = {
}
// param:品牌ID, name:品牌名称, miniQrType 1:商品 2 品牌,miniapp_type 0:有货,1:新与力
let
miniPath
=
helpers
.
urlFormat
(
'/wechat/miniapp.jpg'
,
{
let
miniPath
=
helpers
.
urlFormat
(
'/
api/
wechat/miniapp.jpg'
,
{
miniapp_type
:
0
,
param
:
_
.
get
(
brands
,
'[0].brand_id'
,
0
),
name
:
encodeURIComponent
(
_
.
get
(
brands
,
'[0].brand_name'
,
''
)),
...
...
Please
register
or
login
to post a comment