- handle utf8mb4 in elm and jd order.

This commit is contained in:
gazebo
2018-07-17 22:18:38 +08:00
parent f9096a7b17
commit ada0dbc4f3
4 changed files with 14 additions and 15 deletions

View File

@@ -85,7 +85,7 @@ func (o *OrderController) NewOrder(msg *elmapi.CallbackMsg, orderId string, user
if err != nil {
retVal = errResponseCallELMAPIError
} else {
rec.Data = string(utils.MustMarshal(result))
rec.Data = utils.FilterMb4(string(utils.MustMarshal(result)))
rec.Consignee = result["consignee"].(string)
rec.Mobile = userMobile
if createdAt, ok := result["createdAt"].(string); ok {