aa
This commit is contained in:
@@ -40,7 +40,7 @@ func SimFlowDaySettle() (err error) {
|
|||||||
getCardInfoResult *tibiotapi.IotDataResult
|
getCardInfoResult *tibiotapi.IotDataResult
|
||||||
getCardInfoResultMonth *tibiotapi.IotDataMonthResult
|
getCardInfoResultMonth *tibiotapi.IotDataMonthResult
|
||||||
)
|
)
|
||||||
if getCardInfoResult, err = api.TibiotAPI.IotData(v.IccID, utils.Time2Str(utils.Time2Date(now.AddDate(0, 0, -1)))); err == nil {
|
if getCardInfoResult, err = api.TibiotAPI.IotData(v.IccID, now.AddDate(0, 0, -1).Format("2006-01-02")); err == nil {
|
||||||
//表示还没有同步前一天的流量,只能自己算了
|
//表示还没有同步前一天的流量,只能自己算了
|
||||||
if getCardInfoResult == nil || getCardInfoResult.SyncStatus == "1" || getCardInfoResult.CardFlow == "0KB" || getCardInfoResult.CardFlow == "" { //未同步
|
if getCardInfoResult == nil || getCardInfoResult.SyncStatus == "1" || getCardInfoResult.CardFlow == "0KB" || getCardInfoResult.CardFlow == "" { //未同步
|
||||||
//先查当月用的总的, 减去当月已经用的总的,就是昨天用的
|
//先查当月用的总的, 减去当月已经用的总的,就是昨天用的
|
||||||
|
|||||||
Reference in New Issue
Block a user