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
return err
}
}
if err = msg_m.NewUserRecord(model, user.ID, t, user.Nick, user.ID, diamondIncome, dayNum, propertyUrl, beanNum, groupCode).Persistent(); err != nil {
model.Log.Errorf("SendLittleAssistantMsg NewUserRecord err:%v", err)
return err
if t > 0 {
if err = msg_m.NewUserRecord(model, user.ID, t, user.Nick, user.ID, diamondIncome, dayNum, propertyUrl, beanNum, groupCode).Persistent(); err != nil {
model.Log.Errorf("SendLittleAssistantMsg NewUserRecord err:%v", err)
return err
}
}
err = msg_m.SendEmasMsgAssistant(model, user.ExternalId, user.DeviceType)
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