|
@@ -1150,6 +1150,9 @@ func MySubmitChance(header *protocol.RequestHeader, request *protocol.MySubmitCh |
|
@@ -1150,6 +1150,9 @@ func MySubmitChance(header *protocol.RequestHeader, request *protocol.MySubmitCh |
1150
|
UpdateTime: chance.UpdateTime.Unix() * 1000,
|
1150
|
UpdateTime: chance.UpdateTime.Unix() * 1000,
|
1151
|
ApproveTime: chance.ApproveTime.Unix() * 1000,
|
1151
|
ApproveTime: chance.ApproveTime.Unix() * 1000,
|
1152
|
}
|
1152
|
}
|
|
|
1153
|
+ if item.ApproveTime < 0 {
|
|
|
1154
|
+ item.ApproveTime = 0
|
|
|
1155
|
+ }
|
1153
|
jsonUnmarshal(chance.SourceContent, &item.FormList)
|
1156
|
jsonUnmarshal(chance.SourceContent, &item.FormList)
|
1154
|
item.FormList = clearEmptyForm(item.FormList)
|
1157
|
item.FormList = clearEmptyForm(item.FormList)
|
1155
|
jsonUnmarshal(chance.Images, &item.Pictures)
|
1158
|
jsonUnmarshal(chance.Images, &item.Pictures)
|
|
@@ -1276,9 +1279,15 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove |
|
@@ -1276,9 +1279,15 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove |
1276
|
item := protocol.ChanceItem{
|
1279
|
item := protocol.ChanceItem{
|
1277
|
Id: chance.ChanceId,
|
1280
|
Id: chance.ChanceId,
|
1278
|
Provider: provider,
|
1281
|
Provider: provider,
|
|
|
1282
|
+ CreateTime: chance.CreateTime.Unix() * 1000,
|
|
|
1283
|
+ UpdateTime: chance.UpdateTime.Unix() * 1000,
|
|
|
1284
|
+ ApproveTime: chance.ChanceApproveTime.Unix() * 1000,
|
1279
|
//CreateTime:chance.c
|
1285
|
//CreateTime:chance.c
|
1280
|
//CreateTime: chance.CreateTime.Unix() * 1000,
|
1286
|
//CreateTime: chance.CreateTime.Unix() * 1000,
|
1281
|
}
|
1287
|
}
|
|
|
1288
|
+ if item.ApproveTime < 0 {
|
|
|
1289
|
+ item.ApproveTime = 0
|
|
|
1290
|
+ }
|
1282
|
jsonUnmarshal(chance.SourceContent, &item.FormList)
|
1291
|
jsonUnmarshal(chance.SourceContent, &item.FormList)
|
1283
|
item.FormList = clearEmptyForm(item.FormList)
|
1292
|
item.FormList = clearEmptyForm(item.FormList)
|
1284
|
jsonUnmarshal(chance.Images, &item.Pictures)
|
1293
|
jsonUnmarshal(chance.Images, &item.Pictures)
|