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
5acfbb22
Commit
5acfbb22
authored
Dec 30, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
4ceef879
23a27c00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
UPGRADE_2.x.md
+6
-0
src/Common/Config/CfgCenter.php
+3
-0
src/MemberCard/Enum/UpBonusEvent.php
+9
-0
src/MemberCard/Lib/MemberCardInterface.php
+26
-0
No files found.
UPGRADE_2.x.md
View file @
5acfbb22
# 2.0.44
-
VIP保赚服务上线
# 2.0.43
-
优惠券上线
# 2.0.42
-
活动方案+实物订单上线
...
...
src/Common/Config/CfgCenter.php
View file @
5acfbb22
...
...
@@ -16,11 +16,14 @@ class CfgCenter
const
ALIYUN_SMS
=
'aliyun_sms'
;
//阿里云短信
const
TENCENT_SMS
=
'tencent_sms'
;
//腾讯云短信
const
MP
=
'mp'
;
//公众号-用于H5公众号登录和发送公众号通知
const
MP_CARD
=
'mp_card'
;
//制作卡券公众号
const
PAY
=
'pay'
;
//支付配置
const
DRAW_MONEY
=
'draw_money'
;
//提现配置
const
PAY_KUANYUAN
=
'pay_kuanyuan'
;
//宽元的支付平台配置
const
PAY_YUNMAI_ISP
=
'pay_yunmai_isp'
;
//云脉的支付服务商配置,用于托管子商户
const
PAY_ZHIMEI
=
'pay_zhimei'
;
//致美的支付配置
const
SELLER_DISTRIBUTION
=
'seller_distribution'
;
//卖家分销配置
const
MP_ZHIMEI
=
'mp_zhimei'
;
//致美的公众号配置
/**
* 根据用户token获取配置, 优先使用此方法读取配置
...
...
src/MemberCard/Enum/UpBonusEvent.php
0 → 100644
View file @
5acfbb22
<?php
namespace
Hdll\Services\MemberCard\Enum
;
class
UpBonusEvent
{
const
CONSUME_ADD
=
1
;
//消费产生积分(确认收货)
const
CONSUME_PAY
=
2
;
//下单减积分
const
CLOSE_ORDER
=
3
;
//关闭订单返还积分
}
\ No newline at end of file
src/MemberCard/Lib/MemberCardInterface.php
View file @
5acfbb22
...
...
@@ -25,6 +25,8 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferSetUserCouponStatus(int $storeId,int $couponId,int $status)
* @method ResultInterface deferGetUserValidCouponNum(int $storeId,int $escrow,int $userId)
* @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)
*/
/**
* The interface of demo service
...
...
@@ -120,4 +122,28 @@ interface MemberCardInterface
*/
public
function
ifCouponSuitOrder
(
int
$storeId
,
int
$userId
,
int
$couponId
,
array
$goods
);
/**
* 改变用户积分
*
* @param integer $storeId
* @param integer $escrow
* @param integer $userId
* @param integer $orderId
* @param integer $type //类型 1 消费产生积分 2 积分抵扣 3订单关闭 (这里只要传1-3)【4 - 消费后订单关闭,原来增加积分的记录状态为4(1->4)】
* @param integer $money //类型1 只要传money,bonus不传; 类型2 money,bonus 都传; 类型3 积分,金额都不传
* @param integer $bonus
* @return bool
*/
public
function
upMembercardBonus
(
int
$storeId
,
int
$escrow
,
int
$userId
,
int
$orderId
,
int
$type
,
int
$money
=
0
,
int
$bonus
=
0
);
/**
* 用户储值卡余额 通知会员卡(显示在卡包 余额)
*
* @param integer $storeId
* @param integer $escrow
* @param integer $userId
* @param integer $balance
* @return bool
*/
public
function
upMembercardBalance
(
int
$storeId
,
int
$escrow
,
int
$userId
,
int
$balance
);
}
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