Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
f71be631c61a4562eb9f1691c9311b33aa037e3a
1 parent
eb7e34e0
code review by hf: do modify union duomai goods id param
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
library/Plugin/UnionTrans.php
library/Plugin/UnionTrans.php
View file @
f71be63
...
...
@@ -446,9 +446,13 @@ class UnionTrans
continue
;
}
foreach
(
$value
[
'goods_list'
]
as
$goods
)
{
if
(
$goods
[
'color_name'
]
===
$color
&&
strpos
(
$image
,
$goods
[
'images_url'
])
!==
false
)
{
// 通过颜色找商品ID
if
(
$goods
[
'color_name'
]
===
$color
)
{
$goodsId
=
$goods
[
'goods_id'
];
break
;
// 判断缩略图是否一致 (没办法!没有提供专用的接口返回,没有SKC)
if
(
strpos
(
$image
,
$goods
[
'images_url'
])
!==
false
)
{
break
;
}
}
}
}
...
...
Please
register
or
login
to post a comment