Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ldy
/
payment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9d5b9d71
authored
Mar 27, 2019
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update some bugs
1 parent
8a12cc33
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
18 deletions
src/Charge/Sw/SwClose.php
src/Common/Sw/Data/Cancel/BackCancelData.php
src/Common/Sw/Data/Cancel/BackCloseData.php
src/Common/Sw/Data/Cancel/CancelData.php
src/Common/Sw/Data/Cancel/CloseData.php
src/Refund/SwRefund.php
src/Charge/Sw/SwClose.php
View file @
9d5b9d7
...
@@ -2,11 +2,8 @@
...
@@ -2,11 +2,8 @@
namespace
Payment\Charge\Sw
;
namespace
Payment\Charge\Sw
;
use
Payment\Common\Sw\Data\BackCancelData
;
use
Payment\Common\Sw\Data\Cancel\BackCloseData
;
use
Payment\Common\Sw\Data\BackCloseData
;
use
Payment\Common\Sw\Data\Cancel\CloseData
;
use
Payment\Common\Sw\Data\Charge\CancelData
;
use
Payment\Common\Sw\Data\Charge\CloseData
;
use
Payment\Common\Sw\SwBaseStrategy
;
use
Payment\Common\Sw\SwBaseStrategy
;
use
Payment\Common\SwConfig
;
use
Payment\Common\SwConfig
;
...
@@ -32,7 +29,6 @@ class SwClose extends SwBaseStrategy
...
@@ -32,7 +29,6 @@ class SwClose extends SwBaseStrategy
protected
function
getReqUrl
(
$url
=
null
){
protected
function
getReqUrl
(
$url
=
null
){
return
parent
::
getReqUrl
(
$url
??
SwConfig
::
CLOSE_URL
);
return
parent
::
getReqUrl
(
$url
??
SwConfig
::
CLOSE_URL
);
// return SwConfig::CLOSE_URL;
}
}
/**
/**
...
...
src/Common/Sw/Data/Cancel/BackCancelData.php
View file @
9d5b9d7
<?php
<?php
namespace
Payment\Common\Sw\Data
;
namespace
Payment\Common\Sw\Data\Cancel
;
use
Payment\Common\PayException
;
use
Payment\Common\Sw\Data\SwBaseData
;
/**
/**
...
...
src/Common/Sw/Data/Cancel/BackCloseData.php
View file @
9d5b9d7
<?php
<?php
namespace
Payment\Common\Sw\Data
;
namespace
Payment\Common\Sw\Data\Cancel
;
use
Payment\Common\Sw\Data\SwBaseData
;
/**
/**
...
...
src/Common/Sw/Data/Cancel/CancelData.php
View file @
9d5b9d7
<?php
<?php
namespace
Payment\Common\Sw\Data\C
harge
;
namespace
Payment\Common\Sw\Data\C
ancel
;
use
Payment\Common\
PayException
;
use
Payment\Common\
Sw\Data\SwBaseData
;
use
Payment\Utils\ArrayUtil
;
use
Payment\Utils\ArrayUtil
;
/**
/**
...
@@ -14,12 +14,10 @@ use Payment\Utils\ArrayUtil;
...
@@ -14,12 +14,10 @@ use Payment\Utils\ArrayUtil;
* @package Payment\Common\Sw\Data\Charge
* @package Payment\Common\Sw\Data\Charge
*
*
*/
*/
class
CancelData
extends
Charge
BaseData
class
CancelData
extends
Sw
BaseData
{
{
protected
function
checkDataParam
()
protected
function
checkDataParam
()
{
{
parent
::
checkDataParam
();
$this
->
pay_ver
=
'100'
;
$this
->
pay_ver
=
'100'
;
$this
->
service_id
=
'040'
;
$this
->
service_id
=
'040'
;
}
}
...
...
src/Common/Sw/Data/Cancel/CloseData.php
View file @
9d5b9d7
<?php
<?php
namespace
Payment\Common\Sw\Data\C
harge
;
namespace
Payment\Common\Sw\Data\C
ancel
;
use
Payment\Common\Sw\Data\SwBaseData
;
use
Payment\Utils\ArrayUtil
;
use
Payment\Utils\ArrayUtil
;
/**
/**
...
@@ -13,11 +14,10 @@ use Payment\Utils\ArrayUtil;
...
@@ -13,11 +14,10 @@ use Payment\Utils\ArrayUtil;
* @package Payment\Common\Sw\Data\Charge
* @package Payment\Common\Sw\Data\Charge
*
*
*/
*/
class
CloseData
extends
Charge
BaseData
class
CloseData
extends
Sw
BaseData
{
{
protected
function
checkDataParam
()
protected
function
checkDataParam
()
{
{
parent
::
checkDataParam
();
$this
->
pay_ver
=
'100'
;
$this
->
pay_ver
=
'100'
;
$this
->
service_id
=
'041'
;
$this
->
service_id
=
'041'
;
...
...
src/Refund/SwRefund.php
View file @
9d5b9d7
...
@@ -17,7 +17,7 @@ use Payment\Common\SwConfig;
...
@@ -17,7 +17,7 @@ use Payment\Common\SwConfig;
* 限支付30天内退款,超过30天,不能进行退款操作(具体退款限制时间由通道决定)。
* 限支付30天内退款,超过30天,不能进行退款操作(具体退款限制时间由通道决定)。
*
*
* Class SwRefund
* Class SwRefund
* @package Payment\
Query
\Sw
* @package Payment\
Refund
\Sw
*/
*/
class
SwRefund
extends
SwBaseStrategy
class
SwRefund
extends
SwBaseStrategy
{
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment