From cffb57774030edc674a94f0066369d75a27c6748 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 31 Oct 2023 10:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/task/svc/svc_tik_tok_task_money.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/task/svc/svc_tik_tok_task_money.go b/app/task/svc/svc_tik_tok_task_money.go index ebf56d0..b8f5a92 100644 --- a/app/task/svc/svc_tik_tok_task_money.go +++ b/app/task/svc/svc_tik_tok_task_money.go @@ -129,9 +129,11 @@ func TikTokTaskMoney(types string) { ord := playletSaleOrderDb.GetPlayletVideoOrderByOid(tmp.Oid, tmp.OrdType) tmp.Status = "订单付款" if ord != nil { + if ord.CustomOid == "" { + tmp.CustomOid = utils.OrderUUID(tmp.SubUid) + } playletSaleOrderDb.PlayletVideoOrderUpdate(ord.Id, &tmp) } else { - tmp.CustomOid = utils.OrderUUID(tmp.SubUid) playletSaleOrderDb.PlayletVideoOrderInsert(&tmp) } }