Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
7f6c7711
Commit
7f6c7711
authored
Aug 17, 2018
by
dzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify
parent
071b4a89
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
0 deletions
+86
-0
src/Common/Pool/Config/WithdrawCashPoolConfig.php
+4
-0
src/WithdrawCash/Lib/SellerCnDrawInterface.php
+41
-0
src/WithdrawCash/Lib/SellerFundDrawInterface.php
+41
-0
No files found.
src/Common/Pool/Config/WithdrawCashPoolConfig.php
View file @
7f6c7711
...
@@ -21,6 +21,10 @@ use Swoft\Pool\PoolProperties;
...
@@ -21,6 +21,10 @@ use Swoft\Pool\PoolProperties;
class
WithdrawCashPoolConfig
extends
PoolProperties
class
WithdrawCashPoolConfig
extends
PoolProperties
{
{
public
function
__construct
()
{
$this
->
uri
=
explode
(
','
,
env
(
'RPC_WITHDRAWCASH_URI'
,
'172.21.0.33:8099,172.16.255.12:8099'
));
}
protected
$name
=
'withdrawCash'
;
protected
$name
=
'withdrawCash'
;
/**
/**
...
...
src/WithdrawCash/Lib/SellerCnDrawInterface.php
0 → 100644
View file @
7f6c7711
<?php
/**
* 卖家佣金提现接口
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\WithdrawCash\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* The interface of SellerCnDrawInterface service
*
* @method ResultInterface deferPaySuccess(int $storeId,int $id,string $wxOrderSn,int $fee)
* @method ResultInterface deferPayFailed(int $storeId,int $id,string $message)
*/
interface
SellerCnDrawInterface
{
/**
* 支付成功接口
*
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param string $wxOrderSn 微信支付订单号
* @param integer $fee 手续费
* @return boolean
*/
public
function
paySuccess
(
int
$storeId
,
int
$id
,
string
$wxOrderSn
,
int
$fee
);
/**
* 支付失败接口
*
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param string $message 失败信息
* @return boolean
*/
public
function
payFailed
(
int
$storeId
,
int
$id
,
string
$message
);
}
\ No newline at end of file
src/WithdrawCash/Lib/SellerFundDrawInterface.php
0 → 100644
View file @
7f6c7711
<?php
/**
* 买家营业额提现接口
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\WithdrawCash\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* The interface of SellerFundDrawInterface service
*
* @method ResultInterface deferPaySuccess(int $storeId,int $id,string $wxOrderSn,int $fee)
* @method ResultInterface deferPayFailed(int $storeId,int $id,string $message)
*/
interface
SellerFundDrawInterface
{
/**
* 支付成功接口
*
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param string $wxOrderSn 微信支付订单号
* @param integer $fee 手续费
* @return boolean
*/
public
function
paySuccess
(
int
$storeId
,
int
$id
,
string
$wxOrderSn
,
int
$fee
);
/**
* 支付失败接口
*
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param string $message 失败信息
* @return boolean
*/
public
function
payFailed
(
int
$storeId
,
int
$id
,
string
$message
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment