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
3892cf64
Commit
3892cf64
authored
Aug 28, 2018
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c7e88b9a
499f2004
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
95 deletions
+23
-95
src/Buyer/Lib/CommissionInterface.php
+11
-2
src/Common/Lib/Alisms.php
+2
-4
src/WithdrawCash/Lib/BuyerCnDrawInterface.php
+0
-41
src/WithdrawCash/Lib/SellerFundDrawInterface.php
+0
-41
src/WithdrawCash/Lib/WithdrawCashInterface.php
+10
-7
No files found.
src/Buyer/Lib/CommissionInterface.php
View file @
3892cf64
...
@@ -14,14 +14,23 @@ namespace Hdll\Services\Buyer\Lib;
...
@@ -14,14 +14,23 @@ namespace Hdll\Services\Buyer\Lib;
interface
CommissionInterface
interface
CommissionInterface
{
{
/**
/**
* 扣除可提现金额
(仅限于对账服务使用,切记!!!)
* 扣除可提现金额
*
*
* @param $storeId
* @param $storeId
* @param $buyerId
* @param $buyerId
* @param $money
* @param $money
* @return bool
* @return bool
*/
*/
public
function
reduceBalanceCommissionCompare
(
$storeId
,
$buyerId
,
$money
);
public
function
reduceBalanceCommission
(
$storeId
,
$buyerId
,
$money
);
/**
* 增加可提现金额
*
* @param $storeId
* @param $buyerId
* @param $money
* @return bool
*/
public
function
addBalanceCommission
(
$storeId
,
$buyerId
,
$money
);
/**
/**
* 增加可提现金额(仅限于对账服务使用,切记!!!)
* 增加可提现金额(仅限于对账服务使用,切记!!!)
...
...
src/Common/Lib/Alisms.php
View file @
3892cf64
...
@@ -39,10 +39,8 @@ class Alisms
...
@@ -39,10 +39,8 @@ class Alisms
// 短信模板预设参数
// 短信模板预设参数
$this
->
templateParam
=
$templateParam
;
$this
->
templateParam
=
$templateParam
;
$configurator
=
\Swoft\App
::
getBean
(
'config'
);
$commonConfigs
=
include
dirname
(
__FILE__
,
2
)
.
'/Config/config.php'
;
$configurator
->
load
(
'@vendor/hdll/services/src/Common/Config'
);
$this
->
config
=
$commonConfigs
[
'alisms'
];
$this
->
config
=
$configurator
->
get
(
'alisms'
);
}
}
/**
/**
...
...
src/WithdrawCash/Lib/BuyerCnDrawInterface.php
deleted
100644 → 0
View file @
c7e88b9a
<?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 BuyerCnDrawInterface service
*
* @method ResultInterface deferPaySuccess(int $storeId,int $id,string $wxOrderSn,int $fee)
* @method ResultInterface deferPayFailed(int $storeId,int $id,string $message)
*/
interface
BuyerCnDrawInterface
{
/**
* 支付成功接口
*
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param string $wxOrderSn 微信支付订单号
* @param integer $fee 手续费
* @return void
*/
public
function
paySuccess
(
int
$storeId
,
int
$id
,
string
$wxOrderSn
,
int
$fee
);
/**
* 支付失败接口
*
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param string $message 失败信息
* @return void
*/
public
function
payFailed
(
int
$storeId
,
int
$id
,
string
$message
);
}
\ No newline at end of file
src/WithdrawCash/Lib/SellerFundDrawInterface.php
deleted
100644 → 0
View file @
c7e88b9a
<?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
src/WithdrawCash/Lib/
SellerCnDraw
Interface.php
→
src/WithdrawCash/Lib/
WithdrawCash
Interface.php
View file @
3892cf64
<?php
<?php
/**
/**
*
卖
家佣金提现接口
*
买
家佣金提现接口
*
*
* @link https://swoft.org
* @link https://swoft.org
* @document https://doc.swoft.org
* @document https://doc.swoft.org
...
@@ -11,30 +11,32 @@ namespace Hdll\Services\WithdrawCash\Lib;
...
@@ -11,30 +11,32 @@ namespace Hdll\Services\WithdrawCash\Lib;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
* The interface of
SellerCnDraw
Interface service
* The interface of
WithdrawCash
Interface service
*
*
* @method ResultInterface deferPaySuccess(int $storeId,int $id,string $wxOrderSn,int $fee)
* @method ResultInterface deferPaySuccess(int $
type,int $
storeId,int $id,string $wxOrderSn,int $fee)
* @method ResultInterface deferPayFailed(int $storeId,int $id,string $message)
* @method ResultInterface deferPayFailed(int $
type,int $
storeId,int $id,string $message)
*/
*/
interface
SellerCnDraw
Interface
{
interface
WithdrawCash
Interface
{
/**
/**
* 支付成功接口
* 支付成功接口
*
*
* @param integer $type 提现类型
* @param integer $storeId 店铺ID
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param integer $id 提现记录ID
* @param string $wxOrderSn 微信支付订单号
* @param string $wxOrderSn 微信支付订单号
* @param integer $fee 手续费
* @param integer $fee 手续费
* @return boolean
* @return boolean
*/
*/
public
function
paySuccess
(
int
$storeId
,
int
$id
,
string
$wxOrderSn
,
int
$fee
);
public
function
paySuccess
(
int
$
type
,
int
$
storeId
,
int
$id
,
string
$wxOrderSn
,
int
$fee
);
/**
/**
* 支付失败接口
* 支付失败接口
*
*
* @param integer $type 提现类型
* @param integer $storeId 店铺ID
* @param integer $storeId 店铺ID
* @param integer $id 提现记录ID
* @param integer $id 提现记录ID
* @param string $message 失败信息
* @param string $message 失败信息
* @return boolean
* @return boolean
*/
*/
public
function
payFailed
(
int
$storeId
,
int
$id
,
string
$message
);
public
function
payFailed
(
int
$
type
,
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