hxp
2020-09-11 a02d7379e60b7b3fe0ae8d1ada4cf86fc4d0a1be
1111 媒体卡固定码支持按appid配置;
3个文件已修改
7 ■■■■■ 已修改文件
Tool/WebCenter/Coupon/config.ini 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Tool/WebCenter/Coupon/webapp.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Tool/WebCenter/CouponCode/webapp.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Tool/WebCenter/Coupon/config.ini
@@ -19,9 +19,9 @@
PushPort = 30001
PushKey = GVFoyGfhFDHfgHOU1OQ3RtUFgy5QxPV1
;固定码列表,没有则放空, 以字母z开头避免混淆; 公共固定码,所有人用同一个码,每个人只能领取一次
;固定码列表,没有则放空, 以字母z开头避免混淆; 公共固定码,所有人用同一个码,每个人只能领取一次 {APPID:[码, ...], ...}
;CommonCards = ["zj98u2j0ud1"]
CommonCards = []
CommonCards = {}
;微信商城购物key
zyxh_wxkey = dcdce6dj
Tool/WebCenter/Coupon/webapp.py
@@ -50,8 +50,6 @@
# GM端口
PushPort = ConfigIO.GetValue("Coupon", "PushPort")
PushKey = ConfigIO.GetValue("Coupon", "PushKey")
CommonCards = eval(ConfigIO.GetValue("Coupon", "CommonCards"))
        
Def_CardMsg = {
               0:"CodeRewardSys2", #  兑换码无效
Tool/WebCenter/CouponCode/webapp.py
@@ -157,6 +157,7 @@
    gmresult = {'accID':accid, 'sid':sid, 'channel':agentName}
    #-----------统一固定码处理----------------------
    CommonCards = CommonCards.get(agentName, [])
    if codeStr in CommonCards:
        # 不同固定码各自只能领一次
        result, commondata = dbController.find_one(CouponDB.CouponCodeColName + "_Common", {"code":codeStr, "accid":accid})