package uupt const ( //errCode 错误码说明 ErrorParameter1 = -101 //参数格式校验错误 ErrorParameter2 = -199 //参数格式校验错误 ErrorTimestamp = -102 //timestamp错误 ErrorAppID = -103 //appid无效 ErrorSignatureCheck = -104 //签名校验失败 ErrorOpenIDInvalid = -105 //openid无效 ErrorUnableParseOrigin = -1001 //无法解析起始地 ErrorUnableParseDestination = -1002 //无法解析目的地 ErrorCantGetCityInformation = -1003 //无法获取订单城市相关信息 ErrorOrderCategory = -1004 //订单小类出现错误 ErrorNoUserInformation = -1005 //没有用户信息 ErrorCouponID = -1006 //优惠券ID错误 ErrorPriceToken1 = -2001 //price_token无效 ErrorPriceToken2 = -2002 //price_token无效 ErrorPushType = -2003 //push_type错误 ErrorSpecialType = -2004 //special_type错误 ErrorCallMeWithTake = -2005 //callMe_withTake错误 ErrorOrderPrice = -2006 //order_price错误 ErrorBalancePayMoney = -2007 //balance_payMoney错误 ErrorOrderTotalMoney = -2008 //订单总金额错误 ErrorPayMoney = -2009 //支付金额错误 ErrorUserNotMatch = -2010 //用户不一致 ErrorWrongPhone = -2011 //手机号错误 ErrorNotExistBind = -2012 //不存在绑定关系 ErrorCancelReasonCantEmpty = -4001 //取消原因不能为空 ErrorOrderNumber1 = -4002 //订单编号无效 ErrorOrderNumber2 = -5001 //订单编号无效 ErrorOrderNumber3 = -5002 //订单编号无效 ErrorOrderNumber4 = -5003 //订单编号无效 ErrorFrequencyTooFast = -10001 //发送频率过快,请稍候重试 ErrorNeedCommitVerificationCode = -106 //接口返回base64图片需要提交对应图片验证码 ) var ErrCode = map[int]string{ ErrorParameter1: "参数格式校验错误", ErrorParameter2: "参数格式校验错误", ErrorTimestamp: "timestamp错误", ErrorAppID: "appid无效", ErrorSignatureCheck: "签名校验失败", ErrorOpenIDInvalid: "openid无效", ErrorUnableParseOrigin: "无法解析起始地", ErrorUnableParseDestination: "无法解析目的地", ErrorCantGetCityInformation: "无法获取订单城市相关信息", ErrorOrderCategory: "订单小类出现错误", ErrorNoUserInformation: "没有用户信息", ErrorCouponID: "优惠券ID错误", ErrorPriceToken1: "price_token无效", ErrorPriceToken2: "price_token无效", ErrorPushType: "push_type错误", ErrorSpecialType: "special_type错误", ErrorCallMeWithTake: "callMe_withTake错误", ErrorOrderPrice: "order_price错误", ErrorBalancePayMoney: "balance_payMoney错误", ErrorOrderTotalMoney: "订单总金额错误", ErrorPayMoney: "支付金额错误", ErrorUserNotMatch: "用户不一致", ErrorWrongPhone: "手机号错误", ErrorNotExistBind: "不存在绑定关系", ErrorCancelReasonCantEmpty: "取消原因不能为空", ErrorOrderNumber1: "订单编号无效", ErrorOrderNumber2: "订单编号无效", ErrorOrderNumber3: "订单编号无效", ErrorOrderNumber4: "订单编号无效", ErrorFrequencyTooFast: "发送频率过快,请稍候重试", ErrorNeedCommitVerificationCode: "接口返回base64图片需要提交对应图片验证码", } var ( curDeliveryHandler *DeliveryHandler ) type DeliveryHandler struct { } func init() { //if api. }