|
@@ -386,6 +386,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceSubmit |
|
@@ -386,6 +386,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceSubmit |
386
|
//6.更新文件
|
386
|
//6.更新文件
|
387
|
{
|
387
|
{
|
388
|
if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
|
388
|
if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
|
|
|
389
|
+
|
389
|
if err = utils.UpdateTableByMapWithOrmer(orm, chanceData, map[string]interface{}{
|
390
|
if err = utils.UpdateTableByMapWithOrmer(orm, chanceData, map[string]interface{}{
|
390
|
"Speechs": common.AssertJson(request.Speechs),
|
391
|
"Speechs": common.AssertJson(request.Speechs),
|
391
|
"Images": common.AssertJson(request.Pictures),
|
392
|
"Images": common.AssertJson(request.Pictures),
|