代码拉取完成,页面将自动刷新
{"apifoxProject":"1.0.0","$schema":{"app":"apifox","type":"project","version":"1.2.0"},"info":{"name":"webman-owen","description":"","mockRule":{"rules":[],"enableSystemRule":true}},"apiCollection":[{"name":"根目录","auth":{},"parentId":0,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"methodAndPath","bodyType":"","fields":[]}},"preProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"接口例子-轮播图列表","api":{"id":"131713828","method":"post","path":"/v1/whole/banner","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323888","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"img":{"type":"string"},"sort":{"type":"integer"},"item_type":{"type":"integer","title":"关联类型:1轮播图banner,2视频,3会员卡,4产品,5花艺视频,6文章"},"item_id":{"type":"integer","title":"关联id"},"status":{"type":"integer"},"is_del":{"type":"integer"},"create_time":{"type":"string"},"admin_uid":{"type":"integer"},"os_type":{"type":"integer"},"u_time":{"type":"string"}},"x-apifox-orders":["id","title","img","sort","item_type","item_id","status","is_del","create_time","admin_uid","os_type","u_time"]}},"environment":{"type":"string"},"system_time":{"type":"integer"}},"required":["code","msg","data","environment","system_time"],"x-apifox-orders":["code","msg","data","environment","system_time"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"分类12\",\n \"img\": \"https://owenweb-1256859641.cos.ap-shanghai.myqcloud.com/huadiang-xmyhy/jpg/20220824/6305e1225944a.jpg\",\n \"sort\": 20,\n \"item_type\": 1,\n \"item_id\": 0,\n \"status\": 1,\n \"is_del\": 1,\n \"create_time\": \"2022-08-24 17:03:24\",\n \"admin_uid\": 1,\n \"os_type\": 0,\n \"u_time\": \"2022-08-24 17:04:55\"\n }\n ],\n \"environment\": \"\",\n \"system_time\": 1661353784\n}","responseId":366323888,"ordering":13}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"类型:1课程,2会员卡,3零售产品","type":"string","name":"type","id":"DF1jeYIBzx","example":"1","enable":true}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":0,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{"isDefaultUrlEncoding":1},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":["BLANK.366323888"],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"APP端","auth":{},"parentId":0,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"inherit","bodyType":"","fields":[]}},"preProcessors":[{"type":"commonScript","data":[460800],"id":"iXVAJgCfO2tZqaJW5Ag3USuemhWFN5Nj","defaultEnable":true},{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"权限接口","auth":{},"parentId":25951398,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"inherit","bodyType":"","fields":[]}},"preProcessors":[{"type":"commonScript","data":[460800],"id":"RhRdptfAVMbbPEsIkx2vYVcPhTljDSOa","defaultEnable":true},{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"手机验证码登录","api":{"id":"131713823","method":"post","path":"/v1/auth/loginByMobile","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323678","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"],"x-apifox-orders":["token"]},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"登录成功\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxMjcuMC4wLjE6NTU1NzIiLCJhdWQiOiIxMjcuMC4wLjE6NTU1NzIiLCJpYXQiOjE2NTI4NTk2NzUsIm5iZiI6MTY1Mjg1OTY3NSwidHlwZSI6IjEyNyIsIm9zX3R5cGUiOjEsImV4cCI6MTY1NDE1NTY3NSwianRpIjp7ImlkIjo3fX0.XfShVtj098WEKUj5mqkj4lgR9gj2qUo2B2urnDbsmQA\"\n },\n \"environment\": \"测试环境\"\n}","responseId":366323678,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"手机号码 13999999999 ","type":"string","name":"mobile","id":"C8cqPPgXOZ","example":"13999999999"},{"required":true,"description":"短信验证码 1234","type":"string","name":"sms_code","id":"j3ll7Zxg9E","example":"1234"},{"required":false,"description":"渠道标识 ref ","type":"string","name":"ref","id":"jOXsi7RvyB"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":0,"cases":[{"id":126828016,"type":"http","path":null,"name":"测试","responseId":366323678,"parameters":{},"commonParameters":{"query":[],"body":[],"header":[],"cookie":[]},"requestBody":{"parameters":[{"name":"mobile","value":"13999999999","enable":true,"id":"CG58NRKuoz","relatedName":"mobile"},{"name":"sms_code","value":"1234","enable":true,"id":"23i3iv9HnZ","relatedName":"sms_code"},{"name":"ref","enable":true,"id":"6zi7UPnpKE","relatedName":"ref"}],"type":"multipart/form-data"},"auth":{},"advancedSettings":{},"requestResult":null,"preProcessors":[],"postProcessors":[{"type":"extractor","data":{"variableName":"tokenapp","variableType":"globals","subject":"responseJson","expression":"$.data.token","template":""},"enable":true}],"inheritPostProcessors":{},"inheritPreProcessors":{}}],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"获取短信验证码","api":{"id":"131713824","method":"post","path":"/v1/whole/sendSms","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323680","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"array","items":{"type":"string"}},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"发送成功\",\n \"data\": [],\n \"environment\": \"测试环境\"\n}","responseId":366323680,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"","type":"string","name":"mobile","id":"sNoU2UdkVQ","example":"17055885566"},{"required":true,"description":"短信类型 默认reg reg=>登录注册 ,bind_mobile=>绑定手机号,relieve_mobile=>解除手机号,change_password=>修改/忘记密码","type":"string","name":"type","id":"TDPtYfzlVS","example":"reg"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":6,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"微信小程序微信登录","api":{"id":"131713825","method":"post","path":"/v1/auth/wechatAppLogin","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323882","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"is_vip":{"type":"integer"},"uid":{"type":"integer"}},"required":["token","is_vip","uid"],"x-apifox-orders":["token","is_vip","uid"]},"environment":{"type":"string"},"system_time":{"type":"integer"}},"required":["code","msg","data","environment","system_time"],"x-apifox-orders":["code","msg","data","environment","system_time"]}}],"responseExamples":[{"name":"成功示例","data":"{\n \"code\": 200,\n \"msg\": \"登录成功\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ4bXloeS5vd2Vud2ViLmNuIiwiYXVkIjoieG15aHkub3dlbndlYi5jbiIsImlhdCI6MTY2MTE0Mzg5NSwibmJmIjoxNjYxMTQzODk1LCJ0eXBlIjoieG15aHkiLCJvc190eXBlIjo0LCJleHAiOjE2NjI0Mzk4OTUsImp0aSI6eyJpZCI6MTE2fX0.SGiltU1stXxXcSjLnb0YfVFHdM06_RgWNbGyq53qI0Y\",\n \"is_vip\": 0,\n \"uid\": 116\n },\n \"environment\": \"\",\n \"system_time\": 1661143895\n}","responseId":366323882,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"登录时获取的 code,可通过wx.login获取 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html","type":"string","name":"code","id":"Yc9LQ3i6HH"},{"required":true,"description":"包括敏感数据在内的完整用户信息 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html的加密数据","type":"string","name":"encrypte_data","id":"CQs8UGHIB5"},{"required":true,"description":"加密算法的初始向量","type":"string","name":"iv","id":"uJvsyWiNE4","example":""},{"required":false,"description":"渠道","type":"string","name":"ref","id":"8UbkWE94kS","example":""},{"required":false,"description":"绑定uid","type":"string","name":"bind_uid","id":"aGbVrC7t2t"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":12,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"微信小程序获取手机号","api":{"id":"131713826","method":"post","path":"/v1/user/wechatAppGetPhone","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323884","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"string"},"environment":{"type":"string"},"system_time":{"type":"integer"}},"required":["code","msg","data","environment","system_time"],"x-apifox-orders":["code","msg","data","environment","system_time"]}}],"responseExamples":[{"name":"成功示例","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": \"\",\n \"environment\": \"\",\n \"system_time\": 1661143756\n}","responseId":366323884,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"登录时获取的 code,可通过wx.login获取 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html","type":"string","name":"code","id":"B2HsqInsSr","example":"a39189eb452677ccadca343144fd8abd509b409ef48b1d430780b9d97c9ce3a0"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":18,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"账号密码登录","api":{"id":"131713827","method":"post","path":"/v1/auth/passwordLogin","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323886","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"uid":{"type":"integer"},"is_vip":{"type":"integer"}},"required":["token","uid","is_vip"],"x-apifox-orders":["token","uid","is_vip"]},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJxc3Rlc3QueXV6aGl5aW5hcHAuY29tIiwiYXVkIjoicXN0ZXN0Lnl1emhpeWluYXBwLmNvbSIsImlhdCI6MTY1NTg5MTk1MywibmJmIjoxNjU1ODkxOTUzLCJ0eXBlIjoicXN0ZXN0Iiwib3NfdHlwZSI6MiwiZXhwIjoxNjU3MTg3OTUzLCJqdGkiOnsiaWQiOjl9fQ.456PPl27i2UcWMIFOqzBQpdDM5Bqqb9hoA8rO6T9wzQ\",\n \"uid\": 9,\n \"is_vip\": 1\n },\n \"environment\": \"测试环境\"\n}","responseId":366323886,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"手机账号","type":"string","name":"mobile","id":"FVnOZo03Oq","example":"17055885566"},{"required":true,"description":"密码md5(123456)=e10adc3949ba59abbe56e057f20f883e","type":"string","name":"password","id":"oB5Z0KeYVE","example":"e10adc3949ba59abbe56e057f20f883e"}]},"description":"","tags":[],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":24,"cases":[{"id":126828017,"type":"http","path":"/v1/auth/passwordLogin","name":"成功","responseId":0,"parameters":{"query":[],"path":[],"cookie":[],"header":[]},"commonParameters":{"query":[],"body":[],"header":[],"cookie":[]},"requestBody":{"parameters":[{"id":"sLQsuSIptF","relatedId":"2EGcxxJEkL","relatedName":"mobile","value":"17055885566","enable":true,"isDelete":false},{"id":"LCDEYz2sEr","relatedId":"eofcCb6oCo","relatedName":"password","value":"e10adc3949ba59abbe56e057f20f883e","enable":true,"isDelete":false}]},"auth":{},"advancedSettings":{},"requestResult":null,"preProcessors":[],"postProcessors":[{"type":"commonScript","data":[460799],"enable":true}],"inheritPostProcessors":{},"inheritPreProcessors":{}}],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}}]},{"name":"公共接口","auth":{},"parentId":25951398,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"inherit","bodyType":"","fields":[]}},"preProcessors":[{"type":"commonScript","data":[460800],"id":"5xDB4ZS3OGlbHuknb5GGLo5wT9cUYYfH","defaultEnable":true},{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"文件上传","api":{"id":"131713829","method":"post","path":"/v1/whole/uploadPic","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323890","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"name":{"type":"string"},"href":{"type":"string"},"mime":{"type":"string"},"size":{"type":"string"},"type":{"type":"integer"},"ext":{"type":"string"}},"required":["name","href","mime","size","type","ext"],"x-apifox-orders":["name","href","mime","size","type","ext"]},"environment":{"type":"string"},"system_time":{"type":"integer"}},"required":["code","msg","data","environment","system_time"],"x-apifox-orders":["code","msg","data","environment","system_time"]}}],"responseExamples":[{"name":"成功示例","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"name\": \"微信截图_20220810161525.png\",\n \"href\": \"https://owenweb-1256859641.cos.ap-shanghai.myqcloud.com/webman-adminQCloudCosService.php/png/20220818/62fde16c289cf.png\",\n \"mime\": \"image/png\",\n \"size\": \"9.143 KB\",\n \"type\": 4,\n \"ext\": \"png\"\n },\n \"environment\": \"测试环境\",\n \"system_time\": 1660805485\n}","responseId":366323890,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"","type":"file","name":"file","id":"4lkiBXvOgN"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":6,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"H5服务协议等页面","api":{"id":"131713830","method":"get","path":"/h5/agreement/1","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"},{"name":"AppVersion"}]},"responses":[{"id":"366323892","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"contact":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"os_type":{"type":"integer"},"func":{"type":"string"},"value":{"type":"integer"},"create_time":{"type":"string"},"date_v":{"type":"string"},"u_time":{"type":"string"},"admin_uid":{"type":"integer"},"status":{"type":"integer"},"icon_url":{"type":"string"},"version_info":{"type":"string"},"contact_number":{"type":"string"},"version":{"type":"string"}},"required":["id","title","os_type","func","value","create_time","date_v","u_time","admin_uid","status","icon_url","version_info","contact_number","version"],"x-apifox-orders":["id","title","os_type","func","value","create_time","date_v","u_time","admin_uid","status","icon_url","version_info","contact_number","version"]},"share":{"type":"object","properties":{"title":{"type":"string"},"desc":{"type":"string"},"img":{"type":"string"},"link":{"type":"string"}},"required":["title","desc","img","link"],"x-apifox-orders":["title","desc","img","link"]}},"required":["contact","share"],"x-apifox-orders":["contact","share"]},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[],"requestBody":{"type":"multipart/form-data","parameters":[]},"description":"测试url = https://qstest.yuzhiyinapp.com/\n安卓:\n服务协议:{url}/h5/agreement/1\n隐私保护政策:{url}/h5/agreement/2\nIOS:\n服务协议:{url}/h5/agreement/3\n隐私保护政策:{url}/h5/agreement/4\n\n例如:https://qstest.yuzhiyinapp.com/h5/agreement/1\n","tags":[],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":12,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"微信回调","auth":{},"parentId":25951400,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"inherit","bodyType":"","fields":[]}},"preProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"购买产品","api":{"id":"131713831","method":"post","path":"http://127.0.0.1:55571/h5/payCallback/wechatProductPay/","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323893","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"img":{"type":"string"},"sort":{"type":"integer"},"item_type":{"type":"integer","title":"关联类型:1轮播图banner,2视频,3会员卡,4产品,5花艺视频,6文章"},"item_id":{"type":"integer","title":"关联id"},"status":{"type":"integer"},"is_del":{"type":"integer"},"create_time":{"type":"string"},"admin_uid":{"type":"integer"},"os_type":{"type":"integer"},"u_time":{"type":"string"}},"x-apifox-orders":["id","title","img","sort","item_type","item_id","status","is_del","create_time","admin_uid","os_type","u_time"]}},"environment":{"type":"string"},"system_time":{"type":"integer"}},"required":["code","msg","data","environment","system_time"],"x-apifox-orders":["code","msg","data","environment","system_time"]}}],"responseExamples":[],"requestBody":{"type":"application/json","parameters":[],"jsonSchema":{"type":"object","properties":{"id":{"type":"string"},"create_time":{"type":"string"},"resource_type":{"type":"string"},"event_type":{"type":"string"},"summary":{"type":"string"},"resource":{"type":"object","properties":{"original_type":{"type":"string"},"algorithm":{"type":"string"},"ciphertext":{"type":"string"},"associated_data":{"type":"string"},"nonce":{"type":"string"}},"required":["original_type","algorithm","ciphertext","associated_data","nonce"],"x-apifox-orders":["original_type","algorithm","ciphertext","associated_data","nonce"]}},"required":["id","create_time","resource_type","event_type","summary","resource"],"x-apifox-orders":["id","create_time","resource_type","event_type","summary","resource"]},"example":"{\r\n \"id\": \"d68b940b-25b7-5071-9db2-24357df0431a\",\r\n \"create_time\": \"2022-12-07T16:12:08+08:00\",\r\n \"resource_type\": \"encrypt-resource\",\r\n \"event_type\": \"TRANSACTION.SUCCESS\",\r\n \"summary\": \"支付成功\",\r\n \"resource\": {\r\n \"original_type\": \"transaction\",\r\n \"algorithm\": \"AEAD_AES_256_GCM\",\r\n \"ciphertext\": \"HdFOGtfusjHoJ/5BiIgBxmWGx+D4BsLmlKFyVaG19zeyZgVtknKB9wckYsEt9/hD0K29oEkPmT53RgGKJbCvi1Zpcu4a9H2BP6KWTlfVveU0UeXpIuuZ3gcUbb4rq0R0Db0//INcWGUL54el5jIeMDeOxqVFk6Tnr6800Qsu4Z5G1JfF+ZdSK3LEjYMIkqDxh5hymSlKT1rMAq4tn2ab3jL/I7O9KHIdrmJGF7c1T431oXp9vWN1XM7bIWDzFIoVaRyO2n6Ms6CuVqepg1QP+lnifHliQcP5Jwg+BRz21x9EcY39LUne8PkbrYiB59ZLGv8zkx78UFU2zTd/wCyR/2Y9XrrjmXnGMrDXKTsTevbonreoAota5AcP/6+cO7y3K/aTPUzXZR7tgIIdJ/w4oY3rlPmcyb4CcE9GMV44GhOZd0whizg3SrSiNC+0yza2gXf7M/vyIMZMsOoWX12D1Wcx5rmpsBMq6CHGqwhBc9hODM8IuM9ze/LHklWPrV0sYX6+XSs1zF81rb70x/yUqd4Bcqg+fBSB9Cspok6X4ekAdrVMP5yOloiFjS0dE1wIfMoC21O0O21GJawaygUIDP69nA==\",\r\n \"associated_data\": \"transaction\",\r\n \"nonce\": \"Xpi7cX6jhgjT\"\r\n }\r\n }"},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":0,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}}]}]},{"name":"用户接口","auth":{},"parentId":25951398,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"inherit","bodyType":"","fields":[]}},"preProcessors":[{"type":"commonScript","data":[460800],"id":"cLNWf9rS5kzLfDD2xsq0hMRsdX1Dcdqb","defaultEnable":true},{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"type":"commonScript","data":[460799],"id":"ejenYkB6U8diMbeGzbm2RNjTeRylkB5I","defaultEnable":true},{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"用户信息","auth":{},"parentId":25951405,"serverId":"","description":"","identityPattern":{"httpApi":{"type":"inherit","bodyType":"","fields":[]}},"preProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"postProcessors":[{"id":"inheritProcessors","type":"inheritProcessors","data":{}}],"inheritPostProcessors":{},"inheritPreProcessors":{},"items":[{"name":"用户信息","api":{"id":"131713850","method":"post","path":"/v1/user/info","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"},{"name":"uuid"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"366323930","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"create_time":{"type":"string","title":"创建时间"},"date_v":{"type":"string"},"mobile":{"type":"string"},"avatar":{"type":"string","title":"头像url"},"login_type":{"type":"integer"},"unionid":{"type":"string","title":"微信id"},"nickname":{"type":"string","title":"昵称"},"ref":{"type":"string"},"from":{"type":"string"},"os_type":{"type":"integer"},"qq_unionid":{"type":"string","title":"QQid"},"weibo_unionid":{"type":"string","title":"微博id"},"apple_sub":{"type":"string","title":"苹果id"},"sex":{"type":"integer","title":"性别 1男0女"},"birthday":{"type":"string","title":"生日"},"mobile_aes":{"type":"string","title":"手机号aes密文","description":"aes加密:(https://www.mklab.cn/utils/aes)编码base64,模式cbc,填充Pkcs7Padding,位数128位,输入格式base64,输出格式string,字符集utf-8,密钥T3lUf3t3pdHzSx8U,偏移量cdccB3mtWDu7mcxw(例如17055885566加密后RNl3lfSSZOea8Vodaizvwg==)(https://www.lddgo.net/encrypt/aes)"},"name":{"type":"string","title":"姓名"},"wallet_balance":{"type":"string","title":"钱包余额,单位分"},"is_vip":{"type":"string","title":"是否为会员1是2否"},"vip_info":{"type":"object","properties":{"goods_name":{"type":"string","title":"会员名称"},"delivery_day":{"type":"string","title":"下次配送时间"}},"x-apifox-orders":["goods_name","delivery_day"],"required":["goods_name","delivery_day"]}},"required":["id","status","create_time","date_v","mobile","avatar","login_type","unionid","nickname","ref","from","os_type","qq_unionid","weibo_unionid","apple_sub","birthday","sex","mobile_aes","name","wallet_balance","is_vip","vip_info"],"x-apifox-orders":["id","status","create_time","date_v","mobile","avatar","login_type","unionid","nickname","name","ref","from","os_type","qq_unionid","weibo_unionid","apple_sub","sex","birthday","mobile_aes","wallet_balance","is_vip","vip_info"]}},"required":["data"],"x-apifox-orders":["data"]},"environment":{"type":"string"},"system_time":{"type":"integer","title":"系统时间"}},"required":["code","msg","data","environment","system_time"],"x-apifox-orders":["code","msg","data","environment","system_time"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"id\": 9,\n \"nickname\": \"173****6056\",\n \"name\": \"张欧文\",\n \"status\": 1,\n \"mobile\": \"173****6056\",\n \"countryCode\": \"\",\n \"password\": \"2cecf868b7c1b11db27150df8a48d586\",\n \"avatar\": \"\",\n \"login_type\": 7,\n \"uuid\": \"\",\n \"unionid\": \"\",\n \"wx_openid\": \"oHxcG49R3tqaGuAbcKnd4jatGWpA1\",\n \"ref\": \"\",\n \"from\": \"qstest.yuzhiyinapp.com\",\n \"os_type\": 1,\n \"qq_unionid\": \"\",\n \"apple_sub\": \"\",\n \"weibo_unionid\": \"\",\n \"sex\": 0,\n \"birthday\": \"\",\n \"wallet_balance\": 6402,\n \"date_v\": \"2022-05-27\",\n \"create_time\": \"2022-05-27 18:09:22\",\n \"u_time\": \"2022-09-04 01:21:01\",\n \"mobile_aes\": \"RNl3lfSSZOea8Vodaizvwg==\",\n \"is_vip\": 1,\n \"vip_info\": {\n \"id\": 6,\n \"goods_name\": \"冥想入门\",\n \"order_status\": 1,\n \"status\": 1,\n \"delivery_day\": \"2022-10-17\"\n }\n },\n \"environment\": \"\",\n \"system_time\": 1662485931\n}","responseId":366323930,"ordering":1},{"name":"vip_info无会员用户","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"user_info\": {\n \"id\": 8,\n \"pdf_no\": \"\",\n \"status\": 1,\n \"create_time\": \"2022-05-18 15:48:22\",\n \"date_v\": \"2022-05-18\",\n \"mobile\": \"\",\n \"avatar\": \"https://thirdwx.qlogo.cn/mmopen/vi_32/G635dYm57s8EPA93EnEibvAUTj0rPH06Z7WGvYlLQaaRvUNeMNXAHquxt8zRWQT09pgkgR7rVHpSxrYGHOGUQrA/132\",\n \"login_type\": 1,\n \"unionid\": \"o1_kG6Ksj6tPqiZwjSrLCBmqP6Ks\",\n \"nickname\": \"故里\",\n \"ref\": \"\",\n \"from\": \"paytest.yuzhiyinapp.com\",\n \"os_type\": 1,\n \"qq_unionid\": \"\",\n \"apple_sub\": \"\",\n \"pitcher_id\": 0,\n \"launch_task_id\": 0,\n \"channel_id\": 0,\n \"sex\": 0,\n \"birthday\": null\n },\n \"vip_info\": null\n },\n \"environment\": \"测试环境\"\n}","responseId":366323930,"ordering":2}],"requestBody":{"type":"multipart/form-data","parameters":[]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":0,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"修改信息","api":{"id":"131713851","method":"post","path":"/v1/user/changeInfo","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"36590401","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"user_info":{"type":"object","properties":{"id":{"type":"integer"},"pdf_no":{"type":"string"},"status":{"type":"integer"},"create_time":{"type":"string"},"date_v":{"type":"string"},"mobile":{"type":"string"},"avatar":{"type":"string","title":"头像url"},"login_type":{"type":"integer"},"unionid":{"type":"string"},"nickname":{"type":"string","title":"昵称"},"ref":{"type":"string"},"from":{"type":"string"},"os_type":{"type":"integer"},"qq_unionid":{"type":"string"},"weibo_unionid":{"type":"string"},"apple_sub":{"type":"string"},"pitcher_id":{"type":"integer"},"launch_task_id":{"type":"integer"},"channel_id":{"type":"integer"}},"required":["id","pdf_no","status","create_time","date_v","mobile","avatar","login_type","unionid","nickname","ref","from","os_type","qq_unionid","weibo_unionid","apple_sub","pitcher_id","launch_task_id","channel_id"],"x-apifox-orders":["id","pdf_no","status","create_time","date_v","mobile","avatar","login_type","unionid","nickname","ref","from","os_type","qq_unionid","weibo_unionid","apple_sub","pitcher_id","launch_task_id","channel_id"]},"vip_info":{"type":"object","properties":{"id":{"type":"integer"},"uid":{"type":"integer"},"create_time":{"type":"string"},"e_time":{"type":"string","title":"会员结束时间"},"date_v":{"type":"string"},"status":{"type":"integer"},"vip_type":{"type":"integer"},"u_time":{"type":"null"},"vip_type_note":{"type":"string"},"e_time_int":{"type":"integer"}},"required":["id","uid","create_time","e_time","date_v","status","vip_type","u_time","vip_type_note","e_time_int"],"x-apifox-orders":["id","uid","create_time","e_time","date_v","status","vip_type","u_time","vip_type_note","e_time_int"]}},"required":["user_info","vip_info"],"x-apifox-orders":["user_info","vip_info"]},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": \"\",\n \"environment\": \"\"\n}","responseId":36590401,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":false,"description":"头像地址","type":"string","name":"avatar","id":"jsS8PsLHdb","example":"https://chongdian-cartoon.oss-cn-shanghai.aliyuncs.com/upload/20220429/96fdd26e32aa54cc5923c98adb94e116QnWuZPsU.png"},{"required":false,"description":"昵称","type":"string","name":"nickname","id":"sVnUQxMTsX","example":"dsd"},{"required":false,"description":"性别1男0女-1保密","type":"string","name":"sex","id":"qwYNHmKrig","example":"1"},{"required":false,"description":"生日","type":"string","name":"birthday","id":"bQP2yoHd1q","example":"2022-05-27 11:06:11"},{"required":true,"description":"修改类型:avatar,nickname,sex,birthday","type":"string","name":"type","id":"mHjmWnLj69","example":"avatar"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":6,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"绑定手机号","api":{"id":"131713852","method":"post","path":"/v1/user/bindMobile","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"},{"name":"App-Version"}]},"responses":[{"id":"36590403","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"uid":{"type":"integer"},"is_vip":{"type":"integer"}},"required":["token","uid","is_vip"],"x-apifox-orders":["token","uid","is_vip"]},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": {\n \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJxc3Rlc3QueXV6aGl5aW5hcHAuY29tIiwiYXVkIjoicXN0ZXN0Lnl1emhpeWluYXBwLmNvbSIsImlhdCI6MTY1NTg5MTk1MywibmJmIjoxNjU1ODkxOTUzLCJ0eXBlIjoicXN0ZXN0Iiwib3NfdHlwZSI6MiwiZXhwIjoxNjU3MTg3OTUzLCJqdGkiOnsiaWQiOjl9fQ.456PPl27i2UcWMIFOqzBQpdDM5Bqqb9hoA8rO6T9wzQ\",\n \"uid\": 9,\n \"is_vip\": 1\n },\n \"environment\": \"测试环境\"\n}","responseId":36590403,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"手机号","type":"integer","name":"mobile","id":"vdWnxhBlEP","example":"17055885566"},{"required":true,"description":"验证码","type":"integer","name":"sms_code","id":"pJqFOAwGFn","example":"1234"}]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":12,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"退出登录","api":{"id":"131713853","method":"post","path":"/v1/user/out","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"36590405","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"string"},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": \"\",\n \"environment\": \"\"\n}","responseId":36590405,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[]},"description":"","tags":[],"status":"testing","serverId":"","operationId":"","sourceUrl":"","ordering":18,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"修改密码","api":{"id":"131713854","method":"post","path":"/v1/user/changePassword","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"},{"name":"AppVersion"}]},"responses":[{"id":"36590407","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"string"},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": \"\",\n \"environment\": \"\"\n}","responseId":36590407,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"手机号","type":"integer","name":"mobile","id":"jD8AdiJhdw","example":"17055885566"},{"required":true,"description":"验证码","type":"integer","name":"sms_code","id":"XbwtDtumPx","example":""},{"required":true,"description":"(md5,32位小写)密码md5(123456)=e10adc3949ba59abbe56e057f20f883e","type":"string","name":"password","id":"nXv2l2KHJs","example":"e10adc3949ba59abbe56e057f20f883e"},{"required":true,"description":"确认密码","type":"string","name":"confirm_password","id":"n5d2E3sKlM","example":"e10adc3949ba59abbe56e057f20f883e"}]},"description":"","tags":[],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":24,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"解除手机号","api":{"id":"131713855","method":"post","path":"/v1/user/relieveMobile","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"},{"name":"App-Version"}]},"responses":[{"id":"36590409","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"string"},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[],"requestBody":{"type":"multipart/form-data","parameters":[{"required":true,"description":"手机号","type":"integer","name":"mobile","id":"ab6sVGeHG4","example":"17055885566"},{"required":true,"description":"验证码","type":"integer","name":"sms_code","id":"YjrqaZyDNC","example":"123456"}]},"description":"","tags":[],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":30,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}},{"name":"注销帐号","api":{"id":"131713856","method":"post","path":"/v1/user/cancel","parameters":{"query":[],"header":[]},"auth":{},"commonParameters":{"query":[],"body":[{"name":"uuid"},{"name":"os_type"},{"name":"timestamp"},{"name":"nonce"},{"name":"sign"}],"cookie":[],"header":[{"name":"Authorization"}]},"responses":[{"id":"36590410","name":"成功","code":200,"contentType":"json","jsonSchema":{"type":"object","properties":{"code":{"type":"integer"},"msg":{"type":"string"},"data":{"type":"string"},"environment":{"type":"string"}},"required":["code","msg","data","environment"],"x-apifox-orders":["code","msg","data","environment"]}}],"responseExamples":[{"name":"成功示例 ","data":"{\n \"code\": 200,\n \"msg\": \"success\",\n \"data\": \"\",\n \"environment\": \"\"\n}","responseId":36590410,"ordering":1}],"requestBody":{"type":"multipart/form-data","parameters":[]},"description":"","tags":[],"status":"developing","serverId":"","operationId":"","sourceUrl":"","ordering":36,"cases":[],"mocks":[],"customApiFields":"{}","advancedSettings":{},"mockScript":{},"codeSamples":[],"commonResponseStatus":{},"responseChildren":[],"preProcessors":[],"postProcessors":[],"inheritPostProcessors":{},"inheritPreProcessors":{}}}]}]}]}]}],"socketCollection":[],"docCollection":[],"schemaCollection":[{"name":"根目录","items":[{"name":"公共","items":[{"name":"ids","displayName":"","id":"#/definitions/73160190","description":"","schema":{"jsonSchema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer"}}},"required":["ids"],"x-apifox-orders":["ids"]}}}]}]}],"responseCollection":[{"id":3723733,"createdAt":"2023-12-08T02:41:44.000Z","updatedAt":"2023-12-08T02:41:44.000Z","deletedAt":null,"name":"根目录","type":"root","description":"","children":[],"auth":{},"projectId":3724710,"projectBranchId":0,"parentId":0,"createdById":526667,"updatedById":526667,"items":[]}],"apiTestCaseCollection":[{"name":"根目录","children":[{"name":"默认分组","children":[],"items":[]}],"items":[]}],"testCaseReferences":[],"environments":[{"name":"本地环境","parameters":{"cookie":[],"query":[],"header":[],"body":[]},"variables":[{"name":"timestamp","value":"","description":"","initialValue":""},{"name":"nonce","value":"","description":"","initialValue":""}],"type":"normal","visibility":"protected","ordering":-1,"tags":[{"name":"","color":"#9373EE"}],"id":"16566754","baseUrl":"http://127.0.0.1:8241/api","baseUrls":{"default":"http://127.0.0.1:8241/api"}}],"commonScripts":[{"name":"后置获取tokenapp","description":"","content":"pm.test(\"Status code is 200\", function () {\r\n pm.response.to.have.status(200);\r\n});\r\n\r\n// 把responseBody转为json字符串\r\nvar data = JSON.parse(responseBody);\r\n// 设置环境变量token,供后面的接口引用,位置就是上一步获取的位置\r\npm.globals.set(\"tokenapp\", data.data.token);\r\nconsole.log(\"tokenapp=\"+data.data.token);\r\n\r\n","runMode":"independent","stickyOrdering":0,"ordering":0,"id":"460799"},{"name":"前置获取timestamp,nonce,sign","description":"","content":"//获取时间戳秒级\r\nvar timestamp = Date.parse(new Date())/1000;\r\npm.environment.set(\"timestamp\", timestamp);\r\n\r\n//获取16位随机数\r\nfunction randomString(length, chars) {\r\n var result = '';\r\n for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];\r\n return result;\r\n}\r\nvar nonce = randomString(16, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');\r\npm.environment.set(\"nonce\", nonce);\r\n\r\n\r\n//获取签名sign\r\n// 获取预先设置为环境变量的 APPKEY\r\nlet key = '0e15a974-c8f4-46f8-a8e2-290ec986501c';\r\n// 存放所有需要用来签名的参数\r\nlet param = {};\r\n// 加入 query 参数\r\nlet queryParams = pm.request.url.query;\r\nqueryParams.each(item => {\r\n if (item.value !== '') { // 非空参数值的参数才参与签名\r\n param[item.key] = item.value;\r\n }\r\n});\r\n\r\n// 加入 body 参数\r\nif (pm.request.body) {\r\n let formData;\r\n switch (pm.request.body.mode) {\r\n case 'formdata':\r\n formData = pm.request.body.formdata;\r\n break;\r\n case 'urlencoded':\r\n formData = pm.request.body.urlencoded;\r\n break;\r\n case 'raw':\r\n // 如果没有 JSON 格式的请求 body,或 JSON 格式 body 不参与签名,可以删除这一段\r\n let contentType = pm.request.headers.get('content-type');\r\n if (\r\n contentType\r\n && pm.request.body.raw\r\n && contentType.toLowerCase().indexOf('application/json') !== -1\r\n ) {\r\n try {\r\n let jsonData = JSON.parse(pm.request.body.raw);\r\n\r\n for (let key in jsonData) {\r\n let value = `${jsonData[key]}`; // 此处要注意如果值的实际类型不是 string 需要根据实际情况处理。\r\n if (value !== '') { // 非空参数值的参数才参与签名\r\n param[key] = value;\r\n }\r\n }\r\n } catch (e) {\r\n console.log('请求 body 不是 JSON 格式')\r\n }\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n if (formData) {\r\n formData.each(item => {\r\n if (item.value !== '') { // 非空参数值的参数才参与签名\r\n param[item.key] = item.value;\r\n }\r\n });\r\n }\r\n}\r\n\r\n\r\n// 取 key\r\nlet keys = [];\r\nfor (let key in param) {\r\n // 注意这里,要剔除掉 sign 参数本身\r\n if (key !== 'sign') {\r\n keys.push(key);\r\n }\r\n}\r\n\r\n// 参数名 ASCII 码从小到大排序(字典序)\r\nkeys.sort();\r\n\r\n// 转成键值对\r\nlet paramPair = [];\r\nvar signStr = '';\r\nfor (let i = 0, len = keys.length; i < len; i++) {\r\n let k = keys[i];\r\n if (k == 'timestamp') {\r\n param[k] = timestamp;\r\n }\r\n if (k == 'nonce') {\r\n param[k] = nonce;\r\n }\r\n signStr = signStr + (k + param[k]);\r\n}\r\nconsole.log(signStr);\r\n\r\n//将获得的signStr进行md5加密候转化成大写,再拼接密钥,再md5加密,最后转化为大写\r\nvar sign = CryptoJS.MD5(signStr).toString().toUpperCase() + key;\r\nsign = CryptoJS.MD5(sign).toString().toUpperCase();\r\npm.variables.set(\"sign\", sign);\r\n\r\n\r\n","runMode":"independent","stickyOrdering":0,"ordering":0,"id":"460800"}],"databaseConnections":[],"globalVariables":[{"id":"3724710","variables":[{"name":"tokenapp","value":""},{"name":"nonce","value":""},{"name":"sign","value":""},{"name":"timestamp","value":"{% mock 'timestamp' %}"},{"name":"token","value":""}]}],"commonParameters":{"id":519415,"createdAt":"2023-12-08T02:41:45.000Z","updatedAt":"2023-12-08T02:41:45.000Z","deletedAt":null,"parameters":{"header":[{"name":"Authorization","defaultEnable":true,"type":"string","defaultValue":"{{tokenapp}}","description":"用户登录的token值"}],"body":[{"name":"os_type","defaultEnable":true,"type":"integer","required":true,"defaultValue":"5","description":"系统类型 1=>安卓 2=>IOS 3=>后台 4=>H5 5=>微信小程序"},{"name":"timestamp","defaultEnable":true,"type":"integer","defaultValue":"{{timestamp}}","required":true,"description":"时间戳"},{"name":"nonce","defaultEnable":true,"type":"string","required":true,"description":"16位随机数","defaultValue":"{{nonce}}"},{"name":"sign","defaultEnable":true,"type":"string","description":"签名 生成规则地址:https://cloud.tencent.com/developer/article/2048040","required":true,"defaultValue":"{{sign}}"},{"name":"uuid","defaultEnable":true,"type":"string","required":true,"description":"大于等于32位的UUID ","defaultValue":"ffffffff-9252-a533-ffff-ffff81eff5b0"}]},"projectId":3724710,"creatorId":526667,"editorId":526667},"projectSetting":{"id":"3151615","auth":{},"servers":[{"name":"默认服务","id":"default"}],"gateway":[],"language":"zh-CN","apiStatuses":["developing","testing","released","deprecated"],"mockSettings":{},"preProcessors":[],"postProcessors":[],"advancedSettings":{},"initialDisabledMockIds":[],"cloudMock":{"security":"free","enable":false,"tokenKey":"apifoxToken"}},"projectAssociations":[]}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。