Tool/WebCenter/CouponCode/webapp.py
@@ -272,7 +272,8 @@
        #已使用,同卡号记录默认可用,避免断线发送失败的情况(未返回结果验证情况下)
        mylog.debug("card used!")
        return SendGm(ErrCode_Used, gmresult, pushurl)
    couponType = data["coupontype"]
    commCheckStatus = CommCheck(dataDict, data["coupontype"])
    if commCheckStatus != None:
        return SendGm(commCheckStatus, gmresult, pushurl)
@@ -296,8 +297,16 @@
        mylog.debug("time pass")
        return SendGm(ErrCode_Invalid, gmresult, pushurl)
    
    prefix = "" # 固定前缀
    if couponType in MailJson:
        mailInfo = MailJson[couponType]
        prefix = mailInfo.get("Prefix", "")
    elif ConfigIO.HasSection(couponType):
        if ConfigIO.HasOption(couponType, "Prefix"):
            prefix = ConfigIO.GetValue(couponType, "Prefix")
    # h 开头的卡类型可重复使用
    if not codeStr.startswith('h'):
    if not codeStr.startswith(prefix + 'h'):
        #再查一次是否用过此批次的其他卡, 
        result, data3 = dbController.find_one(CouponDB.CouponCodeColName + "_" + agentName, \
                                              {"coupontype":data["coupontype"], "accid":accid})