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
fec8dd1e
Commit
fec8dd1e
authored
Dec 31, 2019
by
王洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
verifyBonusConvertMoney
parent
9a40b592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
src/MemberCard/Lib/MemberCardInterface.php
+17
-3
No files found.
src/MemberCard/Lib/MemberCardInterface.php
View file @
fec8dd1e
...
...
@@ -27,7 +27,8 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferIfCouponSuitOrder(int $storeId,int $userId,int $couponId,array $goods)
* @method ResultInterface deferUpMembercardBonus(int $storeId,int $escrow,int $userId,int $orderId,int $type,int $money=0,int $bonus=0)
* @method ResultInterface deferUpMembercardBalance(int $storeId,int $escrow,int $userId,int $balance)
* @method ResultInterface deferGetBonusConvertMoney(int $storeId,int $userId,int $bonusToUse)
* @method ResultInterface deferGetBonusConvertMoney((int $storeId,int $escrow,int $userId,int $bonusToUse)
* @method ResultInterface deferVerifyBonusConvertMoney((int $storeId,int $escrow,int $userId,int $bonusToUse,int $price)
*/
/**
* The interface of demo service
...
...
@@ -148,13 +149,26 @@ interface MemberCardInterface
*/
public
function
upMembercardBalance
(
int
$storeId
,
int
$escrow
,
int
$userId
,
int
$balance
);
/**
/**
* 下单时 查询 积分能抵扣的金额
*
* @param integer $storeId
* @param integer $escrow
* @param integer $userId
* @param integer $bonusToUse
* @return int
*/
public
function
getBonusConvertMoney
(
int
$storeId
,
int
$escrow
,
int
$userId
,
int
$bonusToUse
);
/**
* 下单时 验证 积分能抵扣的金额
*
* @param integer $storeId
* @param integer $escrow
* @param integer $userId
* @param integer $bonusToUse
* @param integer $price //订单原价减去优惠券后的价格
* @return int //返回0代表非法请求不可抵扣
*/
public
function
getBonusConvertMoney
(
int
$storeId
,
int
$userId
,
int
$bonusToUs
e
);
public
function
verifyBonusConvertMoney
(
int
$storeId
,
int
$escrow
,
int
$userId
,
int
$bonusToUse
,
int
$pric
e
);
}
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