Commit Graph

49 Commits

Author SHA1 Message Date
gazebo
b338b87a02 - 超频重视逻辑改为按幂增长
+ jdapi.NewPageOnly
2019-08-15 08:54:02 +08:00
gazebo
fbe921605b - 缺省超时设为30秒 2019-08-01 16:46:43 +08:00
gazebo
58bd31a996 - HTTP请求中添加单次访问trackInfo 2019-07-30 18:12:43 +08:00
gazebo
da9c8a11c2 - 重要修改相关的函数新增trackInfo参数,追踪修改人.接口类型改变 2019-07-28 12:34:52 +08:00
gazebo
414c359200 - 清理三个平台的门店商品批处理操作,部分失败返回失败条目 2019-07-21 16:08:37 +08:00
gazebo
4a620746c4 - up 2019-07-11 18:23:36 +08:00
gazebo
989cd7e618 - 修改AccessPlatformAPIWithRetry接口,允许处理返回结果为非JSON请求 2019-07-11 15:47:37 +08:00
gazebo
f7b5147873 - HTTP请求设置为15秒 2019-07-03 21:35:37 +08:00
gazebo
7abebc215c - DefClientTimeout调整为5秒
- DefMaxRecoverableRetryCount调整为1
2019-06-22 18:04:14 +08:00
gazebo
eb009df26d - AccessPlatformAPIWithRetry的回调handleResponse添加response参数
- 饿百从网页取门店健康信息
2019-06-11 16:39:52 +08:00
gazebo
0aa0655556 - xiaowm api 2019-04-09 11:37:04 +08:00
gazebo
c5a44de40c - API返回非200的情况下都尝试重试 2019-04-02 09:39:43 +08:00
gazebo
5163a596c6 - up 2019-03-28 23:25:06 +08:00
gazebo
615049f4b2 - 禁止TryUnmarshalUseNumber出错后报警 2019-03-28 22:57:47 +08:00
gazebo
ea13a07fea - 添加Struct2MapByJson
- 去掉将全局structs.DefaultTagName设置为"json"
2019-03-27 22:42:35 +08:00
gazebo
26f1d37caf - refactor RebuildError
- output store and sku info when mtwm api failed
2019-03-17 21:41:45 +08:00
gazebo
5d85186366 - output method info in AccessPlatformAPIWithRetry 2019-03-11 17:19:43 +08:00
gazebo
9bd3b3f086 - AccessPlatformAPIWithRetry 只要是网络错误都重试 2019-03-08 18:19:19 +08:00
gazebo
dddcdce289 - AccessPlatformAPIWithRetry 2019-03-08 18:00:27 +08:00
gazebo
ff06369a23 - add utils.TryUnmarshalUseNumber
- remove utils.HTTPResponse2Json
2019-02-27 14:19:23 +08:00
gazebo
6d6eee7b09 - when retry for jddj api, use different timestamp to distinguish request 2019-02-26 21:11:34 +08:00
gazebo
0fa014a74f ! disable retry when return data is not json (jddj debug) 2019-02-26 18:25:37 +08:00
gazebo
9f42851229 - up 2019-02-26 10:56:26 +08:00
gazebo
5a76efe254 - handle sometimes ebai return 400, can be recovered by retry. 2019-02-26 10:55:24 +08:00
gazebo
3ee0ee47bc - use Infof instead of Errorf when http code is not 200 (to avoid many ebai errors) 2019-02-21 09:52:00 +08:00
gazebo
a7c8658160 - don't output binary debug msg 2019-01-31 14:36:50 +08:00
gazebo
42235df274 - set maxDataSizeDontOutput = 20 * 1024 in platformapi.go 2019-01-30 14:49:26 +08:00
gazebo
df4b6972fb - debug platformapi 2019-01-24 16:40:37 +08:00
gazebo
40c5d3d5de - track all platformapi call 2019-01-24 16:31:57 +08:00
gazebo
15b9c45598 - maxDataSizeDontOutput = 50 * 1024 (from 200 * 1024) 2019-01-24 10:59:17 +08:00
gazebo
227d37bf3a - return result even error in dada api 2019-01-23 10:43:40 +08:00
gazebo
e06ec24013 - weimob wsc api 2019-01-18 09:17:02 +08:00
gazebo
e124038aa2 - refactor platformapi.AccessPlatformAPIWithRetry 2019-01-12 14:04:37 +08:00
gazebo
8df2506381 - debug msg 2019-01-10 18:47:38 +08:00
gazebo
bf35209354 - record access time 2019-01-09 15:08:27 +08:00
gazebo
6a5afbb07f - default config support for limt_access_speed.
* fix bug when request.Body is nil.
2018-10-27 12:29:27 +08:00
gazebo
ecb04fbe72 - access frequence limit
- output detail request when error
2018-10-27 10:10:54 +08:00
gazebo
ad555f34e9 - output response when not 200 2018-10-23 21:10:45 +08:00
gazebo
aa25e75abc - print response when http code is not 200. 2018-10-20 11:47:23 +08:00
gazebo
3072d0f66b - retry sleep duration reduced to 3 seconds. 2018-09-23 18:42:20 +08:00
gazebo
c1186b9dc6 - reset retry count when access successfully. 2018-09-23 11:27:01 +08:00
gazebo
3fecfbd7a4 - ebai api 2018-09-22 23:28:32 +08:00
gazebo
fa6ac348e3 - fk. Request.Close = true for weixin api. 2018-08-16 11:03:06 +08:00
gazebo
47e1b3989d - fix retry bug (request can not be reused). 2018-08-15 22:06:57 +08:00
gazebo
be0241fd39 - log request and response when AccessPlatformAPIWithRetry failed. 2018-08-13 16:01:10 +08:00
gazebo
0924e3719d - try to fix EOF bug when accessing wenxi api. 2018-08-05 16:11:07 +08:00
gazebo
cc043b7009 - refactor, remove unnecessary log. 2018-07-22 16:27:21 +08:00
gazebo
1f22b95ee2 - more error and warn output. 2018-07-01 10:10:50 +08:00
gazebo
7657966da5 - big big refactor. 2018-06-22 22:26:12 +08:00