|
@@ -252,7 +252,6 @@ func EntSubscribe(entUserId, entId int64) int {
|
|
|
|
|
|
func (this *Task) ConfirmChallenge() {
|
|
|
sessVal := this.Session().GetMultiple()
|
|
|
- positionId := gconv.Int64(sessVal["positionId"])
|
|
|
baseUserId := gconv.Int64(sessVal["base_user_id"])
|
|
|
rData, errMsg := func() (interface{}, error) {
|
|
|
infoMap := map[string]interface{}{}
|
|
@@ -269,8 +268,7 @@ func (this *Task) ConfirmChallenge() {
|
|
|
dayLater := time.Now().Add(time.Duration(config.TaskConf.TaskDayTime-1) * time.Hour * 24)
|
|
|
endTime := time.Date(dayLater.Year(), dayLater.Month(), dayLater.Day(), 23, 59, 59, 0, time.Local)
|
|
|
if db.Tidb.Update("integral_task", map[string]interface{}{
|
|
|
- "position_id": positionId,
|
|
|
- "user_id": baseUserId,
|
|
|
+ "user_id": baseUserId,
|
|
|
}, map[string]interface{}{
|
|
|
"end_time": endTime.Format(date.Date_Full_Layout),
|
|
|
}) {
|