Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
郝肖肖
9 years ago
Commit
16f6036605fe6389c641b130f70b599b3aff7710
1 parent
47534a88
灰度环境支付异步地址恢复
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
9 deletions
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/WebPlugin/Pay/Alibank/Service.php
View file @
16f6036
...
...
@@ -49,7 +49,7 @@ class Service extends PayAbstract
'service'
=>
$this
->
config
->
service
,
'partner'
=>
$this
->
config
->
partner
,
'_input_charset'
=>
$this
->
config
->
input_charset
,
'notify_url'
=>
'graypayment.service.yoho.cn/'
.
$this
->
config
->
notify_url
,
'notify_url'
=>
Yohobuy
::
SERVICE_URL
.
$this
->
config
->
notify_url
,
'return_url'
=>
Helpers
::
url
(
$this
->
config
->
return_url
),
/* 业务参数 */
'subject'
=>
$params
->
goodsName
,
...
...
library/WebPlugin/Pay/Alipay/Service.php
View file @
16f6036
...
...
@@ -53,7 +53,7 @@ class Service extends PayAbstract
'service'
=>
$this
->
config
->
service
,
'partner'
=>
$this
->
config
->
partner
,
'_input_charset'
=>
$this
->
config
->
input_charset
,
'notify_url'
=>
'graypayment.service.yoho.cn/'
.
$this
->
config
->
notify_url
,
'notify_url'
=>
Yohobuy
::
SERVICE_URL
.
$this
->
config
->
notify_url
,
'return_url'
=>
Helpers
::
url
(
$this
->
config
->
return_url
),
/* 业务参数 */
'subject'
=>
$params
->
goodsName
,
...
...
library/WebPlugin/Pay/weixin/lib/WxPayApi.php
View file @
16f6036
...
...
@@ -2,7 +2,7 @@
namespace
WebPlugin\Pay\weixin\lib
;
use
WebPlugin\PhpLog
;
use
Api\Yohobuy
;
/**
*
* 接口访问类,包含所有微信支付API列表的封装,类中方法为static方法,
...
...
@@ -48,10 +48,8 @@ class WxPayApi
throw
new
WxPayException
(
"统一支付接口中,缺少必填参数product_id!trade_type为JSAPI时,product_id为必填参数!"
);
}
//异步通知url未设置,则使用配置文件中的url
if
(
!
$inputObj
->
IsNotify_urlSet
())
{
$inputObj
->
SetNotify_url
(
WxPayConfig
::
NOTIFY_URL
);
//异步通知url
}
//异步通知url
$inputObj
->
SetNotify_url
(
Yohobuy
::
SERVICE_URL
.
'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 @
16f6036
...
...
@@ -15,7 +15,6 @@ use WebPlugin\Pay\weixin\lib\WxPayConfig;
use
WebPlugin\Pay\weixin\lib\WxPayNativePay
;
use
WebPlugin\Pay\weixin\lib\WxPayOrderQuery
;
use
WebPlugin\Pay\weixin\lib\WxPayUnifiedOrder
;
use
Api\Yohobuy
;
use
WebPlugin\UdpLog
;
/**
...
...
@@ -327,7 +326,6 @@ class PaymentModel
$input
->
SetTotal_fee
(
$totalFee
);
$input
->
SetTime_start
(
date
(
"YmdHis"
));
$input
->
SetTime_expire
(
date
(
"YmdHis"
,
time
()
+
600
));
$input
->
SetNotify_url
(
'graypayment.service.yoho.cn/'
.
'payment/weixin_notify'
);
$input
->
SetTrade_type
(
"NATIVE"
);
$input
->
SetProduct_id
(
$orderCode
);
$notify
=
new
WxPayNativePay
();
...
...
Please
register
or
login
to post a comment