删除日志
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/alibabacloud-go/dyplsapi-20170525/client"
|
||||
"github.com/alibabacloud-go/tea/tea"
|
||||
@@ -28,7 +27,6 @@ func QuerySecretNoRemain(city string) (b bool, err error) {
|
||||
err = fmt.Errorf(tea.StringValue(result.Body.Message))
|
||||
return false, err
|
||||
}
|
||||
globals.SugarLogger.Debugf("QuerySecretNoRemain city: %s, result: %v", city, utils.Format4Output(result, true))
|
||||
if tea.Int64Value(result.Body.SecretRemainDTO.Amount) > 0 {
|
||||
return true, nil
|
||||
}
|
||||
@@ -266,7 +264,7 @@ func CallbackBrandBill(res *SecretNumberMsgRes) (err error) {
|
||||
if brands, _ := dao.GetBrands(db, "", 0, res.PoolKey, false, ""); len(brands) > 0 {
|
||||
if brandID := brands[0].ID; brandID != 0 {
|
||||
price := utils.Float64TwoInt(utils.Str2Time(res.ReleaseTime).Sub(utils.Str2Time(res.StartTime)).Minutes()+1) * 6
|
||||
if err = partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, brandID, price, model.BrandBillTypeExpend, model.BrandBillFeeTypeSecretNumber, "",""); err == nil {
|
||||
if err = partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, brandID, price, model.BrandBillTypeExpend, model.BrandBillFeeTypeSecretNumber, "", ""); err == nil {
|
||||
//计算余额,小于10就解绑
|
||||
balance, _ := partner.CurStoreAcctManager.GetBrandBalance(brandID)
|
||||
if balance < model.BrandBalanceLimit {
|
||||
|
||||
Reference in New Issue
Block a user