ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 获取产品码规则列表 接口需要指定商户及ApiKey才能获取到数据,目前获取到的是当前用户所有的数据列表。 ~~~[api] post:http://315.cuci.cc/code/api/getCodeRule.html *code=默认值#商户编号,需要在平台获取 *sign=签名值#数据签名,需要使用签名规则进行签名 *array:data=数据对象#需要提交数据(一维数组) <<< 接口成功 { "msg": "获取产品码规则成功", "type": "JSON", "code": "SUCCESS", "sign": "99717C032AF7537F89F8733C48EA186A", "data": { "_SIGNSTR_": "594CDB8E5D756", "list": [ { "batch": "744326924010", "number": 10000, "sn_start": 1000014939, "sn_end": 1000015251, "max_start": 0, "max_end": 0, "code_pre": "1000", "code_start": 1000000001, "code_end": 1000010000, "max_unit": 0, "unit": 32, "desc": "", "status": 3, "relation": 1, "export_product_code": 1 } ] } } <<< 商户异常 { "msg": "商户不存在, 请传入正确的商户!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [] } <<< 签名异常 { "msg": "签名错误, 请检查数据内容是否正确!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [] } <<< 验证异常 { "msg": "签名数据与商户ApiKey不匹配!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [] } <<< 数据异常 { "msg": "数据格式错误!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [] } ~~~