Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
efb142a1ac7b838ea132bb45cc6e6b2ea5c7fcf1
2 parents
5d6ef7f5
02bf7b2b
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
library/Api/Yohobuy.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
library/Api/Yohobuy.php
View file @
efb142a
...
...
@@ -212,7 +212,16 @@ class Yohobuy
unset
(
$data
[
'private_key'
]);
}
if
(
!
empty
(
$data
))
{
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$data
);
// 新加支持application/x-www-form-urlencoded调用方式
$str
=
''
;
foreach
(
$data
as
$key
=>
$val
)
{
$str
.=
$key
.
'='
.
$val
.
'&'
;
}
$str
=
rtrim
(
$str
,
'&'
);
// curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$str
);
}
$result
=
curl_exec
(
$ch
);
if
(
!
$returnJson
&&
!
empty
(
$result
))
{
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
efb142a
...
...
@@ -471,6 +471,7 @@ class HomeController extends AbstractAction
$service
=
array
(
'header'
=>
array
(
'title'
=>
'在线客服'
),
'pageFooter'
=>
true
,
'service'
=>
$service
);
...
...
Please
register
or
login
to post a comment