1'
This commit is contained in:
@@ -916,7 +916,10 @@ func GetOrderTotalShopMoney(appOrgCode string, vendorStoreID string, start, end
|
||||
}
|
||||
|
||||
var totalIndex int64 = 0
|
||||
result, _ := api.QueryBillList(param)
|
||||
result, err := api.QueryBillList(param)
|
||||
if err != nil {
|
||||
return settlement, nil
|
||||
}
|
||||
for _, v := range *result.TxdBillDetailBOS {
|
||||
if *v.OrderType == "positive" {
|
||||
settlement[*v.BizOrderId] = *v.ReceivableAmount
|
||||
@@ -931,7 +934,10 @@ func GetOrderTotalShopMoney(appOrgCode string, vendorStoreID string, start, end
|
||||
|
||||
for i := 2; i <= int(totalIndex); i++ {
|
||||
param.TxdBillListGetRequest.PageIndex = utils.Int64ToPointer(int64(i))
|
||||
result2, _ := api.QueryBillList(param)
|
||||
result2, err := api.QueryBillList(param)
|
||||
if err != nil {
|
||||
return settlement, nil
|
||||
}
|
||||
for _, v := range *result2.TxdBillDetailBOS {
|
||||
if *v.OrderType == "positive" {
|
||||
settlement[*v.BizOrderId] = *v.ReceivableAmount
|
||||
|
||||
@@ -29,8 +29,8 @@ func OnOrderMsg(msgId string, msg interface{}) (response *tiktokShop.CallbackRes
|
||||
if CurPurchaseHandler != nil {
|
||||
orderId, shopId, _ := api.TiktokStore.GetCallbackOrderId(msgId, msg)
|
||||
orderDetail, err := GetTiktokApi(utils.Int64ToStr(shopId), 0, "").GetTiktokOrderDetail(orderId)
|
||||
globals.SugarLogger.Debugf("GetTiktokApi msg := %s", utils.Format4Output(msg, false))
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("GetTiktokApi msg := %s", utils.Format4Output(msg, false))
|
||||
return tiktokShop.Err2CallbackResponse(err, "")
|
||||
}
|
||||
vendorStoreID := orderDetail.SkuOrderList[0].StoreInfo.StoreId
|
||||
|
||||
Reference in New Issue
Block a user