diff --git a/plugins/zltx_v2/internal/transform.go b/plugins/zltx_v2/internal/transform.go index 1b545b8..6f16dce 100644 --- a/plugins/zltx_v2/internal/transform.go +++ b/plugins/zltx_v2/internal/transform.go @@ -49,10 +49,12 @@ func (c *Config) orderReq(in *proto.OrderRequest) *api.OrderCreateReq { accountType := int64(0) if in.Order.Account == "" { accountType = 0 - } else if helper.IsPhoneNumber(in.Order.Account) { - accountType = 1 - } else if helper.IsEmail(in.Order.Account) { - accountType = 2 + } else { + if helper.IsPhoneNumber(in.Order.Account) { + accountType = 1 + } else { + accountType = 2 + } } return &api.OrderCreateReq{ OutTradeNo: in.Order.OrderNo, // 商户侧订单号长度只能是1-64位