Commit afda3df8 authored by chenweijian's avatar chenweijian

小助手

parent f53b7666
...@@ -23,9 +23,11 @@ func SendLittleAssistantMsg(model *domain.Model, userId mysql.ID, t msg_e.MsgUse ...@@ -23,9 +23,11 @@ func SendLittleAssistantMsg(model *domain.Model, userId mysql.ID, t msg_e.MsgUse
return err return err
} }
} }
if err = msg_m.NewUserRecord(model, user.ID, t, user.Nick, user.ID, diamondIncome, dayNum, propertyUrl, beanNum, groupCode).Persistent(); err != nil { if t > 0 {
model.Log.Errorf("SendLittleAssistantMsg NewUserRecord err:%v", err) if err = msg_m.NewUserRecord(model, user.ID, t, user.Nick, user.ID, diamondIncome, dayNum, propertyUrl, beanNum, groupCode).Persistent(); err != nil {
return err model.Log.Errorf("SendLittleAssistantMsg NewUserRecord err:%v", err)
return err
}
} }
err = msg_m.SendEmasMsgAssistant(model, user.ExternalId, user.DeviceType) err = msg_m.SendEmasMsgAssistant(model, user.ExternalId, user.DeviceType)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment