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
毕凯
9 years ago
Commit
5d318b5237f19f9dbd3c04d05c3431c4a150e973
2 parents
efbbb8b0
01d7324b
Merge branch 'hotfix/payNotifyUrl'
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
4 deletions
library/Api/Yohobuy.php
library/WebPlugin/Pay/Alibank/Service.php
library/WebPlugin/Pay/Alipay/Service.php
library/WebPlugin/Pay/weixin/lib/WxPayApi.php
yohobuy/www.yohobuy.com/application/models/Shopping/Payment.php
library/Api/Yohobuy.php
View file @
5d318b5
...
...
@@ -27,12 +27,16 @@ class Yohobuy
const
SERVICE_URL
=
'http://service.yoho.yohoops.org/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_OLD
=
'http://api2.open.yohobuy.com/'
;
//// 支付回调地址
const
SERVICE_NOTIFY
=
'http://service.yoho.cn/'
;
// 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://test2.open.yohobuy.com/';
//// 支付回调地址
// const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';
/* 预览环境 */
// const API_URL = 'http://preapi.yoho.cn/';
...
...
library/WebPlugin/Pay/Alibank/Service.php
View file @
5d318b5
...
...
@@ -49,7 +49,7 @@ class Service extends PayAbstract
'service'
=>
$this
->
config
->
service
,
'partner'
=>
$this
->
config
->
partner
,
'_input_charset'
=>
$this
->
config
->
input_charset
,
'notify_url'
=>
Yohobuy
::
SERVICE_
URL
.
$this
->
config
->
notify_url
,
'notify_url'
=>
Yohobuy
::
SERVICE_
NOTIFY
.
$this
->
config
->
notify_url
,
'return_url'
=>
Helpers
::
url
(
$this
->
config
->
return_url
),
/* 业务参数 */
'subject'
=>
$params
->
goodsName
,
...
...
library/WebPlugin/Pay/Alipay/Service.php
View file @
5d318b5
...
...
@@ -53,7 +53,7 @@ class Service extends PayAbstract
'service'
=>
$this
->
config
->
service
,
'partner'
=>
$this
->
config
->
partner
,
'_input_charset'
=>
$this
->
config
->
input_charset
,
'notify_url'
=>
Yohobuy
::
SERVICE_
URL
.
$this
->
config
->
notify_url
,
'notify_url'
=>
Yohobuy
::
SERVICE_
NOTIFY
.
$this
->
config
->
notify_url
,
'return_url'
=>
Helpers
::
url
(
$this
->
config
->
return_url
),
/* 业务参数 */
'subject'
=>
$params
->
goodsName
,
...
...
library/WebPlugin/Pay/weixin/lib/WxPayApi.php
View file @
5d318b5
...
...
@@ -49,7 +49,7 @@ class WxPayApi
}
//异步通知url
$inputObj
->
SetNotify_url
(
Yohobuy
::
SERVICE_
URL
.
'payment/weixin_notify'
);
//异步通知url
$inputObj
->
SetNotify_url
(
Yohobuy
::
SERVICE_
NOTIFY
.
'payment/weixin_notify'
);
//异步通知url
$inputObj
->
SetAppid
(
WxPayConfig
::
APPID
);
//公众账号ID
$inputObj
->
SetMch_id
(
WxPayConfig
::
MCHID
);
//商户号
...
...
yohobuy/www.yohobuy.com/application/models/Shopping/Payment.php
View file @
5d318b5
...
...
@@ -523,6 +523,10 @@ class PaymentModel
$reqParams
=
new
Reqparams
(
$orderCode
,
$totalFee
,
'有货订单号:'
.
$orderCode
,
''
,
$orderDetail
[
'data'
][
'create_time'
],
$paymentParameter
,
$isTest
,
$uid
,
$userName
);
$reqPars
=
$payService
->
getPayRequestPars
(
$reqParams
);
UdpLog
::
info
(
"【支付-参数】,function:getPayData,orderCode:
{
$orderCode
}
,接口返回"
,
array
(
'$reqPars'
=>
$reqPars
)
);
if
(
empty
(
$reqPars
))
{
$result
[
'error'
]
=
true
;
$result
[
'message'
]
=
'支付系统繁忙,请稍后再试'
;
...
...
Please
register
or
login
to post a comment