|
@@ -309,10 +309,9 @@ func (this *Examine) EntExamine() bool {
|
|
|
Appid: "10000",
|
|
|
GoodsCode: GOODSCODE_XXFB,
|
|
|
EntId: this.EntId,
|
|
|
- StartTime: now.Format(Date_Full_Layout),
|
|
|
- EndTime: end.AddDate(1, 0, 0).Format(Date_Full_Layout),
|
|
|
Type: 1,
|
|
|
GoodsSpecId: 4,
|
|
|
+ BuyNum: 1,
|
|
|
}
|
|
|
resp, err := this.ResourceLib.PowerHandle(context.Background(), req)
|
|
|
//0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
|
|
@@ -609,12 +608,6 @@ func (this *UpdateEnt) UpdateEnt() (int64, string) {
|
|
|
if auth_status := common.Int64All((*rdata)["auth_status"]); auth_status == 1 {
|
|
|
needUpdate = true
|
|
|
}
|
|
|
- if starttime := common.ObjToString((*rdata)["auth_startTime"]); starttime != "" {
|
|
|
- req.StartTime = starttime
|
|
|
- }
|
|
|
- if endtime := common.ObjToString((*rdata)["auth_endTime"]); endtime != "" {
|
|
|
- req.EndTime = endtime
|
|
|
- }
|
|
|
}
|
|
|
if this.UpdateType == 2 {
|
|
|
this.UpdateType = 0
|