<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                * [接口說明]() * [公用響應]() * [小程序授權]() * [獲取seesion\_key]() * [獲取token](http://www.hmoore.net/crmeb/crmeb_api/1330602#token_45) * [首頁](http://www.hmoore.net/crmeb/crmeb_api/1330602#_108) * [產品接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_375) * [獲取產品分類](http://www.hmoore.net/crmeb/crmeb_api/1330602#_376) * [產品所有分類](http://www.hmoore.net/crmeb/crmeb_api/1330602#_403) * [產品列表](http://www.hmoore.net/crmeb/crmeb_api/1330602#_456) * [產品詳情](http://www.hmoore.net/crmeb/crmeb_api/1330602#_511) * [獲取用戶產品推廣二維碼 需要調整數據msg讀取出來了](http://www.hmoore.net/crmeb/crmeb_api/1330602#__msg_650) * [用戶是否收藏該產品](http://www.hmoore.net/crmeb/crmeb_api/1330602#_678) * [產品收藏接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_705) * [獲取熱門產品 待確定](http://www.hmoore.net/crmeb/crmeb_api/1330602#___730) * [我的收藏](http://www.hmoore.net/crmeb/crmeb_api/1330602#_780) * [刪除我的收藏](http://www.hmoore.net/crmeb/crmeb_api/1330602#_825) * [購物車接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_849) * [添加購物車](http://www.hmoore.net/crmeb/crmeb_api/1330602#_850) * [我的購物車](http://www.hmoore.net/crmeb/crmeb_api/1330602#_880) * [購物車修改數量](http://www.hmoore.net/crmeb/crmeb_api/1330602#_994) * [購物車中收藏產品](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1020) * [購物車中刪除](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1045) * [獲取購物車中數量](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1070) * [收貨地址管理](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1095) * [獲取默認收貨地址](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1096) * [獲取收貨地址](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1129) * [設置默認地址](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1173) * [獲取編輯收貨地址](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1197) * [保存收貨地址](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1237) * [刪除收貨地址](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1284) * [訂單接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1309) * [訂單確認](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1310) * [訂單詳情](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1456) * [申請退款前](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1590) * [提交申請退款 uniID請post一起提交吧](http://www.hmoore.net/crmeb/crmeb_api/1330602#__uniIDpost_1615) * [取消訂單](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1649) * [訂單支付](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1674) * [獲取支付后訂單信息](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1755) * [優惠券](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1836) * [產品可領取優惠券列表](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1837) * [訂單中獲取優惠券](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1875) * [我的優惠券](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1912) * [領取優惠券](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1969) * [個人中心接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1994) * [個人中心](http://www.hmoore.net/crmeb/crmeb_api/1330602#_1996) * [獲取個人中心導航菜單](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2056) * [獲取訂單狀態數量](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2111) * [獲取訂單列表](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2143) * [獲取用戶信息](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2251) * [用戶充值](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2295) * [我的賬單明細](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2325) * [我的積分明細 需要完善類型篩選](http://www.hmoore.net/crmeb/crmeb_api/1330602#__2370) * [簽到接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2436) * [簽到接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2437) * [我的簽到記錄](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2462) * [歷史簽到記錄](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2491) * [推廣中心](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2526) * [昨日收益](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2527) * [申請提現](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2549) * [提現獲取配置接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2607) * [我的分享海報](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2632) * [我的推廣人數 建議和下面接口合并](http://www.hmoore.net/crmeb/crmeb_api/1330602#___2659) * [我的推廣人列表 oder 參數名字建議換一下,type 字段名字也換一下](http://www.hmoore.net/crmeb/crmeb_api/1330602#__oder_type__2684) * [傭金明細 接口錯誤](http://www.hmoore.net/crmeb/crmeb_api/1330602#___2775) * [推廣訂單總數](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2822) * [推廣訂單列表 暫時沒有](http://www.hmoore.net/crmeb/crmeb_api/1330602#___2845) * [提現記錄 參數 first 換成page,該接口是不是和資金記錄可以合并](http://www.hmoore.net/crmeb/crmeb_api/1330602#___first_page_2869) * [提現總額無接口建議和提現列表接口合并](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2898) * [活動接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2899) * [獲取最新活動](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2900) * [其它接口](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2927) * [獲取組合數據](http://www.hmoore.net/crmeb/crmeb_api/1330602#_2928) * [創建formID](http://www.hmoore.net/crmeb/crmeb_api/1330602#formID_2982) * [標準格式](http://www.hmoore.net/crmeb/crmeb_api/1330602#_3015) # 接口說明 ## 公用響應 * 所有的請求 接口都會響應統一的數據格式(json格式) ~~~ { "code": 200, // 所有的code 為200 代表成功 "msg": null, //返回響應的提示消息 "data": { "data_filed": "asd" // 前段需要展示的數據 }, "count":100 //總條數 } ~~~ ### 小程序授權 #### 獲取seesion\_key * 接口說明 根據code獲取seesion\_key * 請求地址 /login/index * 請求方式 POST * 請求參數 ~~~ { "code":"023yrTy12MjQOU0L4Lx12fCYy12yrTyB" } ~~~ * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "session_key": "Jxyj\/\/+74+rkzTlbROX0IQ==", "openid": "o9qvr4uGzrhWvPT8EgXhVD7oQyww", "unionid": "oZEAhs5ELOKSQaoDyZxhnuRtVhkg" }, "count": 0 } ~~~ #### 獲取token * 接口說明 根據session\_key 解密獲取用戶信息帶unionid,返回token * 請求地址 /login/index * 請求方式 POST * 請求參數 ~~~ { "info": { "errMsg": "getUserInfo:ok", "rawData": "{\"nickName\":\"?許の???榮耀?\",\"gender\":1,\"language\":\"zh_CN\",\"city\":\"安康\",\"province\":\"陜西\",\"country\":\"中國\",\"avatarUrl\":\"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg/132\"}", "userInfo": { "nickName": "張三" "gender": 1, "language": "zh_CN", "city": "安康", "province": "陜西", "country": "中國", "avatarUrl": "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg/132" }, "signature": "3dcacd97950fc46f03da3724da55d086d4c5a484", "encryptedData": "MuKWABhoSrtv0w6ZUlOsc9RT4GwZ5xEaDf2YuJ2yXeRFnsa8bXxMVZz45xeVHp9v71l+5Qv7sPsyfbdbGztOtM5I7KHD/mmHtc3o9/w43xfYH0cTeSR3wLdhRJ23QUqZCYim/FpckDSOBRrHKf9SJido53ThtrFXic8qYsxYd6UCIDGmHVXa874wNScfbmTbQDA9tsWLuzVEgxKxH7Lp32SEmBxBGerHXbuxByN0oicAaq8ZGo86xu/Sb2PsubvfyCc9FmSvD/lDmyBY4MMnPP+GyEzSWafV8KGpBpxNVnTHGAkjKf4j1IKLyRVzQAFqL0ymX17GAWtoauR6DHu/DWydBf8ZS+OfUuvWjGNLQqXOPJUqj7er7157ZCmMFucNTd5Z8SxNmbB3wp1qceXd088LGdJd0s/GgGd17GtTDPHwYncuXaAVmB4bFPGcdLtlGMDlWCHndWZp09M8nUfsbiWRrN6nzZD5yB/BTjBxL6vdqen2iNAl1IkIMGBzb7KID9qqoqmOpBIRK2MTiH+TPUzCxgg+oNocaBJVCXfUt5Q=", "iv": "+8qBBd7IuQxSYOXBoQ0VVg==", "spid": 0, "session_key": "4jElZJx6uYw5CblZavNNIQ==" } } ~~~ * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "openId": "o9qvr4uGzrhWvPT8EgXhVD7oQyww", "nickName": "張三", "gender": 1, "language": "zh_CN", "city": "安康", "province": "陜西", "country": "中國", "avatarUrl": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132", "unionId": "oZEAhs5ELOKSQaoDyZxhnuRtVhkg", "watermark": { "timestamp": 1553821207, "appid": "wx3b82801238ca1b57" }, "session_key": "4jElZJx6uYw5CblZavNNIQ==", "spid": 0, "uid": 2, "page": "", "token": "6287cb324f0cf66249befa1f8cade097a3b0650355e7b45ab79746cf0c0de66cde471b8347e176ded65643930cc9fee5be477f702bcfaa7e5217de766f4650fdd5444564215cae1116276fb051091f4378704ad8739e38ee", "status": 1 }, "count": 0 } ~~~ ### 首頁 * 接口說明 獲取首頁展示數據 * 請求地址 /public\_api/index * 請求參數 無 * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "banner": [{ "id": 104, "name": "banenr2", "url": "\/pages\/pink-list\/index?id=2", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db14908923.jpg" }], "menus": [{ "id": 99, "name": "收藏", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc7146add5.png", "url": "\/pages\/collect\/collect", "show": "是" }, { "id": 100, "name": "砍價", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc72335ee5.png", "url": "\/pages\/activity\/goods_bargain\/index", "show": "否" }, { "id": 101, "name": "秒殺", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc730dead2.png", "url": "\/pages\/miao-list\/miao-list", "show": "否" }, { "id": 102, "name": "拼團", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc73feecaf.png", "url": "\/pages\/pink-list\/index", "show": "否" }], "roll": [{ "id": 121, "info": "CRMEB電商系統 V 2.5 即將上線!", "url": "\/pages\/index\/index", "show": "是" }, { "id": 122, "info": "CRMEB電商系統 V 2.5 即將上線!", "url": "\/pages\/miao-list\/miao-list", "show": "否" }, { "id": 123, "info": "CRMEB電商系統 V 2.5 即將上線!", "url": "\/pages\/index\/index", "show": "是" }], "info": { "fastInfo": "上百種商品分類任您選擇", "bastInfo": "老李誠意推薦品質商品", "firstInfo": "多個優質商品最新上架", "salesInfo": "庫存商品優惠促銷活動", "fastList": [{ "id": 2, "cate_name": "清潔工具", "pid": 1, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg" }, { "id": 3, "cate_name": "生活電器", "pid": 1, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg" }, { "id": 4, "cate_name": "數碼產品", "pid": 1, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg" }, { "id": 5, "cate_name": "日化用品", "pid": 1, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg" }, { "id": 7, "cate_name": "手表", "pid": 6, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg" }, { "id": 8, "cate_name": "皮包", "pid": 6, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg" }], "bastList": [{ "id": 1, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "store_name": "無線吸塵器F8 玫瑰金禮盒版", "cate_id": "2", "price": "0.01", "ot_price": "1699.00", "sales": "128", "unit_name": "件", "sort": 1 }, { "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "store_name": "互聯網電熱水器1A", "cate_id": "3", "price": "999.00", "ot_price": "1599.00", "sales": "25", "unit_name": "件", "sort": 0 }, { "id": 3, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "store_name": "智米加濕器 白色", "cate_id": "3", "price": "249.00", "ot_price": "299.00", "sales": "10", "unit_name": "件", "sort": 0 }, { "id": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "store_name": "智能馬桶蓋 AI版", "cate_id": "3", "price": "0.01", "ot_price": "1999.00", "sales": "28", "unit_name": "件", "sort": 0 }], "firstList": [{ "id": 1, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "store_name": "無線吸塵器F8 玫瑰金禮盒版", "cate_id": "2", "price": "0.01", "unit_name": "件", "sort": 1 }, { "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "store_name": "互聯網電熱水器1A", "cate_id": "3", "price": "999.00", "unit_name": "件", "sort": 0 }, { "id": 3, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "store_name": "智米加濕器 白色", "cate_id": "3", "price": "249.00", "unit_name": "件", "sort": 0 }, { "id": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "store_name": "智能馬桶蓋 AI版", "cate_id": "3", "price": "0.01", "unit_name": "件", "sort": 0 }], "bastBanner": [{ "id": 127, "img": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9cd03224d59.jpg", "comment": "精品推薦", "link": "\/pages\/first-new-product\/index" }, { "id": 128, "img": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9cd03224d59.jpg", "comment": "精品推薦", "link": "\/pages\/first-new-product\/index" }] }, "activity": [{ "id": 124, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg", "title": "一起來拼團", "info": "優惠多多", "link": "\/pages\/activity\/goods_combination\/index" }, { "id": 125, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e97660.jpg", "title": "秒殺專區", "info": "新能源汽車火熱銷售", "link": "\/pages\/activity\/goods_seckill\/index" }, { "id": 126, "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccfc86a6c1.jpg", "title": "砍價活動", "info": "呼朋喚友來砍價~~~", "link": "\/pages\/activity\/goods_bargain\/index" }], "lovely": [{ "id": 88, "img": "http:\/\/shop.crmeb.net\/public\/uploads\/editor\/20180601\/5b10b2b0969d7.jpg", "comment": "拼團" }], "benefit": [{ "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "store_name": "互聯網電熱水器1A", "cate_id": "3", "price": "999.00", "ot_price": "1599.00", "stock": 485, "unit_name": "件", "sort": 0 }, { "id": 3, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "store_name": "智米加濕器 白色", "cate_id": "3", "price": "249.00", "ot_price": "299.00", "stock": 999, "unit_name": "件", "sort": 0 }, { "id": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "store_name": "智能馬桶蓋 AI版", "cate_id": "3", "price": "0.01", "ot_price": "1999.00", "stock": 994, "unit_name": "件", "sort": 0 }], "likeInfo": [{ "id": 1, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "store_name": "無線吸塵器F8 玫瑰金禮盒版", "cate_id": "2", "price": "0.01", "unit_name": "件", "sort": 1 }, { "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "store_name": "互聯網電熱水器1A", "cate_id": "3", "price": "999.00", "unit_name": "件", "sort": 0 }, { "id": 3, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "store_name": "智米加濕器 白色", "cate_id": "3", "price": "249.00", "unit_name": "件", "sort": 0 }] }, "count": 0 } ~~~ ### 產品接口 #### 獲取產品分類 * 接口說明 獲取產品分類 * 請求地址 /store\_api/get\_pid\_cate * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | pid | int | 分類ID 無或者0 獲取所有分類 | 否 | * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 1, "cate_name": "熱門推薦" }, { "id": 6, "cate_name": "商務人士" }], "count": 0 } ~~~ #### 產品所有分類 * 接口說明 獲取產品所有分類 * 請求地址 /store\_api/get\_product\_category * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | pid | int | 分類ID 無或者0 獲取所有分類 | 否 | * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 1, "cate_name": "熱門推薦", "child": [{ "id": 2, "cate_name": "清潔工具", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg" }, { "id": 3, "cate_name": "生活電器", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg" }, { "id": 4, "cate_name": "數碼產品", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg" }, { "id": 5, "cate_name": "日化用品", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg" }] }, { "id": 6, "cate_name": "商務人士", "child": [{ "id": 7, "cate_name": "手表", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg" }, { "id": 8, "cate_name": "皮包", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccf7e9f4d0.jpg" }] }], "count": 0 } ~~~ #### 產品列表 * 接口說明 獲取產品列表 * 請求地址 /store\_api/get\_product\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | sid | int | 分類ID | 是 | | keyword | string | 關鍵詞 | 否 | | priceOrder | string | 價格排序“asc”升序,“desc”倒序 | 否 | | salesOrder | string | 銷量排序“asc”升序,“desc”倒序 | 否 | | news | int | 新上架 1新品 0 不限制 | 否 | | page | int | 翻頁默認1 | 否 | | limit | int | 每頁條數默認10 | 否 | * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 2, "store_name": "智能馬桶蓋 AI版", "cate_id": "3", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "sales": 16, "ficti": 12, "price": "0.01", "stock": 994 }, { "id": 4, "store_name": "互聯網電熱水器1A", "cate_id": "3", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "sales": 15, "ficti": 10, "price": "999.00", "stock": 485 }, { "id": 3, "store_name": "智米加濕器 白色", "cate_id": "3", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "sales": 2, "ficti": 8, "price": "249.00", "stock": 999 }], "count": 0 } ~~~ #### 產品詳情 * 接口說明 獲取產品詳情 * 請求地址 /store\_api/details * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | id | int | 產品ID | 是 | * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "id": "1", "storeInfo": { "id": 1, "mer_id": 0, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"], "store_name": "無線吸塵器F8 玫瑰金禮盒版", "store_info": "【年貨節活動價1699元,領取吸塵器優惠券再減50元,到手價僅1649元】", "keyword": "無線吸塵器", "cate_id": "2", "price": "0.01", "vip_price": "0.00", "ot_price": "1699.00", "postage": "1.00", "unit_name": "件", "sort": 1, "sales": 47, "stock": 586, "is_show": 1, "is_hot": 1, "is_benefit": 0, "is_best": 1, "is_new": 1, "description": "<p><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb137d656.jpeg\"\/><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb229e820.jpeg\"\/><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb3b37f84.jpeg\"\/><img src=\"http:\/\/datong.crmeb.net\/public\/uploads\/editor\/20190115\/5c3dbb513b06f.jpeg\"\/><\/p>", "add_time": 1547205504, "is_postage": 1, "is_del": 0, "mer_use": 0, "give_integral": "1699.00", "cost": "100.00", "is_seckill": 0, "is_bargain": 0, "ficti": 81, "browse": 0, "code_path": "", "userCollect": false }, "similarity": [{ "id": 1, "store_name": "無線吸塵器F8 玫瑰金禮盒版", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "price": "0.01", "sales": 47, "ficti": 81 }, { "id": 4, "store_name": "互聯網電熱水器1A", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "price": "999.00", "sales": 15, "ficti": 10 }, { "id": 3, "store_name": "智米加濕器 白色", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "price": "249.00", "sales": 2, "ficti": 8 }, { "id": 2, "store_name": "智能馬桶蓋 AI版", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "price": "0.01", "sales": 16, "ficti": 12 }], "productAttr": [{ "product_id": 1, "attr_name": "顏色", "attr_values": ["黑色", "白色", "藍色"], "attr_value": [{ "attr": "黑色", "check": false }, { "attr": "白色", "check": false }, { "attr": "藍色", "check": false }] }], "productValue": { "白色": { "product_id": 1, "suk": "白色", "stock": 195, "sales": 4, "price": "0.02", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg", "unique": "a84fff47", "cost": "100.00" }, "藍色": { "product_id": 1, "suk": "藍色", "stock": 188, "sales": 11, "price": "0.03", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "unique": "f39d47dc", "cost": "100.00" }, "黑色": { "product_id": 1, "suk": "黑色", "stock": 187, "sales": 12, "price": "0.01", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "unique": "6af2068e", "cost": "100.00" } }, "priceName": "0~0", "reply": null, "replyCount": 0, "replyChance": 0, "mer_id": 0 }, "count": 0 } ~~~ #### 獲取用戶產品推廣二維碼 需要調整數據msg讀取出來了 * 接口說明 獲取用戶產品推廣二維碼 * 請求地址 /store\_api/product\_promotion\_code * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | id | int | 產品ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "http:\/\/datong.crmeb.net\/public\/uploads\/codepath\/product\/1_2.jpg", "data": [], "count": 0 } ~~~ #### 用戶是否收藏該產品 * 接口說明 獲取用戶是否收藏該產品 * 請求地址 /store\_api/get\_product\_collect * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | product\_id | int | 產品ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "userCollect": false //沒有收藏false,已經收藏 true }, "count": 0 } ~~~ #### 產品收藏接口 * 接口說明 用戶收藏產品接口 * 請求地址 /store\_api/collect\_product * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | product\_id | int | 產品ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ #### 獲取熱門產品 待確定 * 接口說明 獲取熱門產品列表 * 請求地址 /public\_api/get\_hot\_product * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | offset | int | 其實ID | 是 | | limit | int | 調試 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "store_name": "互聯網電熱水器1A", "cate_id": "3", "price": "999.00", "unit_name": "件", "sort": 0 }, { "id": 3, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "store_name": "智米加濕器 白色", "cate_id": "3", "price": "249.00", "unit_name": "件", "sort": 0 }, { "id": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "store_name": "智能馬桶蓋 AI版", "cate_id": "3", "price": "0.01", "unit_name": "件", "sort": 0 }], "count": 0 } ~~~ #### 我的收藏 * 接口說明 獲取我收藏的產品 * 請求地址 /store\_api/get\_user\_collect\_product * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | page | int | 請求起始頁數,默認1 | 是 | | limit | int | 請求條數 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "pid": 1, "store_name": "無線吸塵器F8 玫瑰金禮盒版", "price": "0.01", "ot_price": "1699.00", "sales": 49, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "is_del": 0, "is_show": 1, "is_fail": false }, { "pid": 3, "store_name": "智米加濕器 白色", "price": "249.00", "ot_price": "299.00", "sales": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc0ef27068.jpg", "is_del": 0, "is_show": 1, "is_fail": false }], "count": 0 } ~~~ #### 刪除我的收藏 * 接口說明 刪除我收藏的產品 * 請求地址 /store\_api/get\_user\_collect\_product\_del * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | pid | int | 收藏ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": 1, "count": 0 } ~~~ ### 購物車接口 #### 添加購物車 * 接口說明 添加購物車接口 * 請求地址 /auth\_api/set\_cart * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | productId | int | 產品ID | 是 | | cartNum | int | 加入購物車數量 默認1 | 是 | | uniqueId | string | 產品SKU | 否 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "cartId": "78" //購物車ID }, "count": 0 } ~~~ #### 我的購物車 * 接口說明 獲取我的購物車 * 請求地址 /auth\_api/get\_cart\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "valid": [{ "id": 75, "uid": 2, "type": "product", "product_id": 4, "product_attr_unique": "", "cart_num": 1, "add_time": 1553823585, "is_pay": 0, "is_del": 0, "is_new": 0, "combination_id": 0, "seckill_id": 0, "bargain_id": 0, "productInfo": { "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg"], "price": "999.00", "ot_price": "1599.00", "vip_price": "0.00", "postage": "0.00", "mer_id": 0, "give_integral": "999.00", "cate_id": "3", "sales": 15, "stock": 485, "store_name": "互聯網電熱水器1A", "store_info": "3000w雙管速熱,動態360L熱水用量,雙重漏電保護,智能APP操控", "unit_name": "件", "is_show": 1, "is_del": 0, "is_postage": 1, "cost": "888.00" }, "truePrice": 999, "trueStock": 485, "costPrice": "888.00" }, { "id": 78, "uid": 2, "type": "product", "product_id": 1, "product_attr_unique": "f39d47dc", "cart_num": 1, "add_time": 1553823313, "is_pay": 0, "is_del": 0, "is_new": 0, "combination_id": 0, "seckill_id": 0, "bargain_id": 0, "productInfo": { "id": 1, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"], "price": "0.01", "ot_price": "1699.00", "vip_price": "0.00", "postage": "1.00", "mer_id": 0, "give_integral": "1699.00", "cate_id": "2", "sales": 47, "stock": 586, "store_name": "無線吸塵器F8 玫瑰金禮盒版", "store_info": "【年貨節活動價1699元,領取吸塵器優惠券再減50元,到手價僅1649元】", "unit_name": "件", "is_show": 1, "is_del": 0, "is_postage": 1, "cost": "100.00", "attrInfo": { "product_id": 1, "suk": "藍色", "stock": 188, "sales": 11, "price": "0.03", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "unique": "f39d47dc", "cost": "100.00" } }, "truePrice": 0.03, "trueStock": 188, "costPrice": "100.00" }], "invalid": [] }, "count": 0 } ~~~ #### 購物車修改數量 * 接口說明 購物車修改數量 * 請求地址 /auth\_api/change\_cart\_num * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | cartId | int | 購物車ID | 是 | | cartNum | int | 修改數量 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ #### 購物車中收藏產品 * 接口說明 購物車中收藏產品 * 請求地址 /store\_api/collect\_product\_all * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | productId | string | 產品ID 例如:“1,2,3” | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "收藏成功", "data": [], "count": 0 } ~~~ #### 購物車中刪除 * 接口說明 購物車中刪除 * 請求地址 /auth\_api/remove\_cart * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | ids | string | 購物車ID 例如"1,2" | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ #### 獲取購物車中數量 * 接口說明 獲取領取優惠券列表 * 請求地址 /auth\_api/get\_cart\_num * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": 1, "count": 0 } ~~~ ### 收貨地址管理 #### 獲取默認收貨地址 * 接口說明 獲取默認收貨地址 * 請求地址 /user\_api/user\_default\_address * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "id": 17, "real_name": "張三", "phone": "020-81167888", "province": "廣東省", "city": "廣州市", "district": "海珠區", "detail": "新港中路397號", "is_default": 1 }, "count": 0 } ~~~ #### 獲取收貨地址 * 接口說明 獲取收貨地址列表 * 請求地址 /user\_api/user\_address\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | page | int | 起始頁 | 否 | | limit | int | 每頁條數 | 否 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 17, "real_name": "張三", "phone": "020-81167888", "province": "廣東省", "city": "廣州市", "district": "海珠區", "detail": "新港中路397號", "is_default": 1 }, { "id": 16, "real_name": "張三", "phone": "020-81167888", "province": "廣東省", "city": "廣州市", "district": "海珠區", "detail": "新港中路397號", "is_default": 0 }], "count": 0 } ~~~ #### 設置默認地址 * 接口說明 提交申請退款 * 請求地址 /user\_api/set\_user\_default\_address * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | addressId | int | 收貨地址ID | 是 | * 請求方式 POST * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ #### 獲取編輯收貨地址 * 接口說明 獲取編輯收貨地址信息 * 請求地址 /user\_api/get\_user\_address * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | addressId | int | 收貨地址ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "id": 16, "uid": 2, "real_name": "張三", "phone": "020-81167888", "province": "廣東省", "city": "廣州市", "district": "海珠區", "detail": "新港中路397號", "post_code": 510000, "longitude": "0", "latitude": "0", "is_default": 1, "is_del": 0, "add_time": 1553183200 }, "count": 0 } ~~~ #### 保存收貨地址 * 接口說明 編輯保存添加保存收貨地址 * 請求地址 /user\_api/edit\_user\_address * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | real\_name | string | 收貨人姓名 | 是 | | phone | phone | 收貨人電話 | 是 | | detail | string | 詳細地址注 | 是 | | id | string | 收貨地址ID,0新添加 | 是 | | address | json | 地址"province""city""district" | 是 | | is\_default | int | 1設置默認地址0不設置默認地址 | 否 | 示例 ~~~ { "real_name": "張三", "phone": "13679281699", "detail": "新港中路397號", "id": "16", "address": { "province": "廣東省", "city": "廣州市", "district": "海珠區" }, "is_default": 1 } ~~~ * 請求方式 POST * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ #### 刪除收貨地址 * 接口說明 刪除收貨地址 * 請求地址 /user\_api/remove\_user\_address * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | addressId | int | 收貨地址ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ ### 訂單接口 #### 訂單確認 * 接口說明 訂單確認頁面 * 請求地址 /auth\_api/confirm\_order * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | cartId | string | 購物車ID格式“1,2,3” | 是 | * 請求方式 POST * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "cartId": "78,79", "usableCoupon": null, "seckill_id": 0, "cartInfo": [{ "id": 78, "uid": 2, "type": "product", "product_id": 1, "product_attr_unique": "f39d47dc", "cart_num": 1, "add_time": 1553823313, "is_pay": 0, "is_del": 0, "is_new": 0, "combination_id": 0, "seckill_id": 0, "bargain_id": 0, "productInfo": { "id": 1, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba1366885.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3db9de2b73a.jpg"], "price": "0.01", "ot_price": "1699.00", "vip_price": "0.00", "postage": "1.00", "mer_id": 0, "give_integral": "1699.00", "cate_id": "2", "sales": 47, "stock": 586, "store_name": "無線吸塵器F8 玫瑰金禮盒版", "store_info": "【年貨節活動價1699元,領取吸塵器優惠券再減50元,到手價僅1649元】", "unit_name": "件", "is_show": 1, "is_del": 0, "is_postage": 1, "cost": "100.00", "attrInfo": { "product_id": 1, "suk": "藍色", "stock": 188, "sales": 11, "price": "0.03", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dba4187461.jpg", "unique": "f39d47dc", "cost": "100.00" } }, "truePrice": 0.03, "trueStock": 188, "costPrice": "100.00" }, { "id": 79, "uid": 2, "type": "product", "product_id": 4, "product_attr_unique": "", "cart_num": 1, "add_time": 1553825017, "is_pay": 0, "is_del": 0, "is_new": 0, "combination_id": 0, "seckill_id": 0, "bargain_id": 0, "productInfo": { "id": 4, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dc23646fff.jpg"], "price": "999.00", "ot_price": "1599.00", "vip_price": "0.00", "postage": "0.00", "mer_id": 0, "give_integral": "999.00", "cate_id": "3", "sales": 15, "stock": 485, "store_name": "互聯網電熱水器1A", "store_info": "3000w雙管速熱,動態360L熱水用量,雙重漏電保護,智能APP操控", "unit_name": "件", "is_show": 1, "is_del": 0, "is_postage": 1, "cost": "888.00" }, "truePrice": 999, "trueStock": 485, "costPrice": "888.00" }], "priceGroup": { "storePostage": 0, "storeFreePostage": 20, "totalPrice": "999.03", "costPrice": "988.00" }, "orderKey": "533640e54157471f799a907976bf3932", "offlinePostage": "1", "userInfo": { "uid": 2, "account": "rt21548052469", "pwd": "e10adc3949ba59abbe56e057f20f883e", "nickname": "?許の???榮耀?", "avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132", "phone": null, "add_time": 1548052469, "add_ip": "123.139.168.143", "last_time": 1553821207, "last_ip": "123.139.69.172", "now_money": "0.10", "integral": "986.00", "sign_num": 0, "status": 1, "level": 0, "spread_uid": 0, "spread_time": 0, "user_type": "routine", "is_promoter": 0, "pay_count": 8 }, "integralRatio": "0.01" }, "count": 0 } ~~~ #### 訂單詳情 * 接口說明 獲取訂單詳情 * 請求地址 /user\_api/get\_order * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | uni | string | 訂單ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "id": 41, "order_id": "wx2019032910400510003", "uid": 2, "real_name": "張三", "user_phone": "020-81167888", "user_address": "廣東省 廣州市 海珠區 新港中路397號", "cart_id": [81], "total_num": 1, "total_price": "0.01", "total_postage": "0.00", "pay_price": "0.01", "pay_postage": "0.00", "deduction_price": "0.00", "coupon_id": 0, "coupon_price": "0.00", "paid": 1, "pay_time": 1553827359, "pay_type": "weixin", "add_time": 1553827205, "status": 0, "refund_status": 0, "refund_reason_wap_img": null, "refund_reason_wap_explain": null, "refund_reason_time": null, "refund_reason_wap": null, "refund_reason": null, "refund_price": "0.00", "delivery_name": null, "delivery_type": null, "delivery_id": null, "gain_integral": "1.00", "use_integral": "0.00", "back_integral": null, "mark": "", "is_del": 0, "unique": "b3db609baad6fde98980fe66ce3b75bf", "remark": null, "mer_id": 0, "is_mer_check": 0, "combination_id": 0, "pink_id": 0, "cost": "1500.00", "seckill_id": 0, "bargain_id": 0, "is_channel": 1, "add_time_y": "2019-03-29", "add_time_h": "10:40:05", "cartInfo": [{ "id": 81, "uid": 2, "type": "product", "product_id": 2, "product_attr_unique": "bae75a3a", "cart_num": 1, "add_time": 1553827189, "is_pay": 0, "is_del": 0, "is_new": 1, "combination_id": 0, "seckill_id": 0, "bargain_id": 0, "productInfo": { "id": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg"], "price": "0.01", "ot_price": "1999.00", "vip_price": "0.00", "postage": "0.00", "mer_id": 0, "give_integral": "1999.00", "cate_id": "3", "sales": 17, "stock": 994, "store_name": "智能馬桶蓋 AI版", "store_info": "智能馬桶蓋 AI版", "unit_name": "件", "is_show": 1, "is_del": 0, "is_postage": 1, "cost": "1500.00", "attrInfo": { "product_id": 2, "suk": "30cm", "stock": 984, "sales": 10, "price": "0.01", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "unique": "bae75a3a", "cost": "1500.00" } }, "truePrice": 0.01, "trueStock": 984, "costPrice": "1500.00", "unique": "f1de5100906f31712aaa5166689bfdf4", "is_reply": 0 }], "_status": { "_type": 1, "_title": "未發貨", "_msg": "商家未發貨,請耐心等待", "_class": "state-nfh", "_payType": "微信支付" }, "_pay_time": "2019-03-29 10:42:39", "_add_time": "2019-03-29 10:40:05", "status_pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccca12638a.gif" }, "count": 0 } ~~~ #### 申請退款前 * 接口說明 申請退款前獲取訂單信息 * 請求地址 /public\_api/get\_refund\_reason * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | uni | string | 訂單ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": ["收貨地址填錯了", "與描述不符", "信息填錯了,重新拍", "收到商品損壞了", "未按預定時間發貨", "其它原因"], "count": 0 } ~~~ #### 提交申請退款 uniID請post一起提交吧 * 接口說明 提交申請退款 * 請求地址 /auth\_api/apply\_order\_refund * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | uni | string | 訂單ID | 是 | | text | string | 退款理由 | 是 | | refund\_reason\_wap\_explain | string | 申請退款備注 | 是 | | refund\_reason\_wap\_img | string | 申請退款圖片“1.jpg,2.jpg” | 否 | 示例 { "text": "信息填錯了,重新拍", "refund\_reason\_wap\_explain": "請盡快發貨謝謝", "refund\_reason\_wap\_img": "" } * 請求方式 POST * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": ["收貨地址填錯了", "與描述不符", "信息填錯了,重新拍", "收到商品損壞了", "未按預定時間發貨", "其它原因"], "count": 0 } ~~~ #### 取消訂單 * 接口說明 取消訂單 * 請求地址 /auth\_api/cancel\_order * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | uni | string | 訂單號 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [], "count": 0 } ~~~ #### 訂單支付 * 接口說明 訂單結算創建訂單 * 請求地址 /auth\_api/create\_order * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | addressId | int | 收貨地址ID | 是 | | bargainId | int | 砍價ID 0 | 否 | | combinationId | int | 拼團ID | 否 | | couponId | int | 優惠券id | 否 | | formId | int | 生成formid | 否 | | mark | string | 備注 | 否 | | payType | string | 支付方式 微信“weixin”,余額“yue” | 是 | | pinkId | int | 拼團ID | 否 | | seckill\_id | int | 秒殺ID 0 | 否 | | useIntegral | bool | ture 用積分 false 不用積分 | 是 | 示例 ~~~ { "addressId": 17, "formId": "the formId is a mock one", "couponId": 0, "payType": "weixin", "useIntegral": false, "bargainId": 0, "combinationId": 0, "pinkId": 0, "seckill_id": 0, "mark": "" } ~~~ * 請求方式 POST * 響應數據 余額支付返回數據 ~~~ { "code": 200, "msg": "余額不足999.03", "data": { "status": "PAY_DEFICIENCY", "result": [] }, "count": 0 } ~~~ 微信支付返回數據 ~~~ { "code": 200, "msg": "訂單創建成功", "data": { "status": "WECHAT_PAY", "result": { "orderId": "wx2019032910400510003", "key": "b3db609baad6fde98980fe66ce3b75bf", "jsConfig": { "appId": "wx3b82801238ca1b57", "nonceStr": "5c9d85861e78f", "package": "prepay_id=wx29104006078008b9289ca1fb1291811394", "signType": "MD5", "paySign": "B02F5F4A4D48F9A3B3DA3D31B271A35C", "timestamp": "1553827206" } } }, "count": 0 } ~~~ #### 獲取支付后訂單信息 * 接口說明 訂單結算創建訂單 * 請求地址 /auth\_api/get\_order\_pay\_info * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | order\_id | string | 訂單ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "id": 41, "order_id": "wx2019032910400510003", "uid": 2, "real_name": "張三", "user_phone": "020-81167888", "user_address": "廣東省 廣州市 海珠區 新港中路397號", "cart_id": [81], "total_num": 1, "total_price": "0.01", "total_postage": "0.00", "pay_price": "0.01", "pay_postage": "0.00", "deduction_price": "0.00", "coupon_id": 0, "coupon_price": "0.00", "paid": 1, "pay_time": 1553827359, "pay_type": "weixin", "add_time": 1553827205, "status": 0, "refund_status": 0, "refund_reason_wap_img": null, "refund_reason_wap_explain": null, "refund_reason_time": null, "refund_reason_wap": null, "refund_reason": null, "refund_price": "0.00", "delivery_name": null, "delivery_type": null, "delivery_id": null, "gain_integral": "1.00", "use_integral": "0.00", "back_integral": null, "mark": "", "is_del": 0, "unique": "b3db609baad6fde98980fe66ce3b75bf", "remark": null, "mer_id": 0, "is_mer_check": 0, "combination_id": 0, "pink_id": 0, "cost": "1500.00", "seckill_id": 0, "bargain_id": 0, "is_channel": 1, "_status": { "_type": 1, "_title": "未發貨", "_msg": "商家未發貨,請耐心等待", "_class": "state-nfh", "_payType": "微信支付", "_deliveryType": "其他方式" }, "_pay_time": "2019-03-29 10:42:39", "_add_time": 1553827366, "status_pic": "" }, "count": 0 } ~~~ ### 優惠券 #### 產品可領取優惠券列表 * 接口說明 獲取領取優惠券列表 * 請求地址 /coupons\_api/get\_issue\_coupon\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | limit | int | 條數 | 否 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 2, "cid": 4, "start_time": 0, "end_time": "1970\/01\/01", "total_count": 5, "remain_count": 3, "is_permanent": 0, "status": 1, "is_del": 0, "add_time": "2019\/03\/21", "coupon_price": "1.00", "use_min_price": "0.00", "is_use": true }], "count": 0 } ~~~ #### 訂單中獲取優惠券 * 接口說明 訂單中獲取可用優惠券列表 * 請求地址 /coupons\_api/get\_use\_coupon\_order * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | totalPrice | float | 訂單總價格 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 6, "cid": 4, "uid": 2, "coupon_title": "全場優惠券1元", "coupon_price": "1.00", "use_min_price": "0.00", "add_time": "2019\/03\/29", "end_time": "2019\/04\/08", "use_time": 0, "type": "get", "status": 0, "is_fail": 0 }], "count": 0 } ~~~ #### 我的優惠券 * 接口說明 我的所有優惠券列表 * 請求地址 /coupons\_api/get\_use\_coupons * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 6, "cid": 4, "uid": 2, "coupon_title": "測試 2019.3.21.21.22", "coupon_price": 1, "use_min_price": 0, "add_time": "2019\/03\/29", "end_time": "2019\/04\/08", "use_time": 0, "type": "get", "status": 0, "is_fail": 0, "_add_time": "2019\/03\/29", "_end_time": "2019\/04\/08", "_type": 2, "_msg": "可使用" }, { "id": 5, "cid": 4, "uid": 2, "coupon_title": "測試 2019.3.21.21.22", "coupon_price": 1, "use_min_price": 0, "add_time": "2019\/03\/28", "end_time": "2019\/04\/07", "use_time": 1553784135, "type": "get", "status": 1, "is_fail": 0, "_add_time": "2019\/03\/28", "_end_time": "2019\/04\/07", "_type": 0, "_msg": "已使用" }], "count": 0 } ~~~ #### 領取優惠券 * 接口說明 點擊領取優惠券 * 請求地址 /coupons\_api/user\_get\_coupon * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | couponId | int | 優惠券ID | 是 | * 請求方式 POST * 響應數據 ~~~ { "code": 200, "msg": "領取成功", "data": [], "count": 0 } ~~~ ### 個人中心接口 #### 個人中心 * 接口說明 個人中心數據接口 * 請求地址 /user\_api/my * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "uid": 2, "account": "rt21548052469", "nickname": "張三", "avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132", "phone": null, "add_time": 1548052469, "add_ip": "123.139.168.143", "last_time": 1553827154, "last_ip": "123.139.69.172", "now_money": "0.10", "integral": "0.00", "sign_num": 0, "status": 1, "level": 0, "spread_uid": 0, "spread_time": 0, "user_type": "routine", "is_promoter": 0, "pay_count": 9, "couponCount": 0, "like": 3, "orderStatusNum": { "noBuy": 4, "noPostage": "9", "noTake": 0, "noReply": 0, "noPink": 0, "noRefund": 1 }, "notice": 0, "brokerage": 0, "recharge": 0.1, "orderStatusSum": 0.02, "statu": 1, "vip": false }, "count": 0 } ~~~ #### 獲取個人中心導航菜單 * 接口說明 獲取個人中心導航菜單 * 請求地址 /public\_api/get\_my\_naviga * 請求參數 參數名稱 | 類型 | 描述 | 是否必須 \---|---|---|--- token|string|授權token header中提交|是 * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "routine_my_menus": [{ "id": 135, "name": "會員中心", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc9934a7c.png", "url": "\/pages\/user_vip\/index" }, { "id": 137, "name": "我的推廣", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc9943575.png", "url": "\/pages\/user_spread_user\/index" }, { "id": 138, "name": "我的余額", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc992db31.png", "url": "\/pages\/user_money\/index" }, { "id": 139, "name": "地址信息", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc99101a8.png", "url": "\/pages\/user_address_list\/index" }, { "id": 140, "name": "我的收藏", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc99269d1.png", "url": "\/pages\/user_goods_collection\/index" }, { "id": 141, "name": "優惠卷", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc991f394.png", "url": "\/pages\/user_coupon\/index" }, { "id": 162, "name": "砍價記錄", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/28\/5c9ccc9918091.png", "url": "\/pages\/activity\/user_goods_bargain_list\/index" }] } } ~~~ #### 獲取訂單狀態數量 * 接口說明 獲取訂單狀態數量 * 請求地址 /auth\_api/get\_order\_data * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "order_count": 9, "sum_price": 0.02, "unpaid_count": 4, "unshipped_count": 8, "received_count": 0, "evaluated_count": 0, "complete_count": 0 }, "count": 0 } ~~~ #### 獲取訂單列表 * 接口說明 獲取訂單列表 * 請求地址 /user\_api/get\_user\_order\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | type | int | 訂單類型0全部,1待發貨,2待收貨,3待評價,4已完成 | 是 | | page | int | 請求起始頁數,默認1 | 是 | | limit | int | 請求條數 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "add_time": 1553827012, "seckill_id": 0, "bargain_id": 0, "combination_id": 0, "id": 40, "order_id": "wx2019032910365210002", "pay_price": "877.14", "total_num": 1, "total_price": "888.00", "pay_postage": "0.00", "total_postage": "0.00", "paid": 0, "status": 0, "refund_status": 0, "pay_type": "weixin", "coupon_price": "1.00", "deduction_price": "9.86", "pink_id": 0, "delivery_type": null, "cartInfo": [{ "id": 80, "uid": 2, "type": "product", "product_id": 2, "product_attr_unique": "19f1d772", "cart_num": 1, "add_time": 1553826976, "is_pay": 0, "is_del": 0, "is_new": 1, "combination_id": 0, "seckill_id": 0, "bargain_id": 0, "productInfo": { "id": 2, "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg", "slider_image": ["http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc27c69c7.jpg", "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg"], "price": "0.01", "ot_price": "1999.00", "vip_price": "0.00", "postage": "0.00", "mer_id": 0, "give_integral": "1999.00", "cate_id": "3", "sales": 16, "stock": 994, "store_name": "智能馬桶蓋 AI版", "store_info": "智能馬桶蓋 AI版", "unit_name": "件", "is_show": 1, "is_del": 0, "is_postage": 1, "cost": "1500.00", "attrInfo": { "product_id": 2, "suk": "40cm", "stock": 994, "sales": 0, "price": "888.00", "image": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/01\/15\/5c3dbc6a38fab.jpg", "unique": "19f1d772", "cost": "1500.00" } }, "truePrice": 888, "trueStock": 994, "costPrice": "1500.00", "unique": "544defa9fddff50c53b71c43e0da72be", "is_reply": 0 }], "_status": { "_type": 0, "_title": "未支付", "_msg": "立即支付訂單吧", "_class": "nobuy", "_payType": "微信支付" }, "_pay_time": "", "_add_time": "2019-03-29 10:36:52", "status_pic": "" }], "count": 0 } ~~~ #### 獲取用戶信息 * 接口說明 獲取領取優惠券列表 * 請求地址 /user\_api/get\_my\_user\_info * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "uid": 2, "account": "rt21548052469", "nickname": "????榮耀?", "avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI3crzwq5uZ83PBTkFXhjRCbHHK1lUZ0X4RHKoawFFA7h4ccpMfvULcoib9SV6ZUd6CV5Ypq9fhYibg\/132", "phone": null, "add_time": 1548052469, "add_ip": "123.139.168.143", "last_time": 1553821207, "last_ip": "123.139.69.172", "now_money": "0.10", "integral": "986.00", "sign_num": 0, "status": 1, "level": 0, "spread_uid": 0, "spread_time": 0, "user_type": "routine", "is_promoter": 0, "pay_count": 8 }, "count": 0 } ~~~ #### 用戶充值 * 接口說明 用戶充值 * 請求地址 /user\_api/user\_wechat\_recharge * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | price | float | 充值金額 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "appId": "wx3b82801238ca1b57", "nonceStr": "5c9e0e2027eaf", "package": "prepay_id=wx29202256137894a2e3836a062582534758", "signType": "MD5", "paySign": "101888B544AC89A4E3C2D1D3AE143006", "timestamp": "1553862176" } } ~~~ #### 我的賬單明細 * 接口說明 我的賬單明細 * 請求地址 /user\_api/get\_user\_bill\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | type | int | 賬單類型0全部,1消費2充值 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "money": "2019-03", "list": [{ "add_time": "2019-03-21 23:46", "title": "購買商品", "number": "0.00", "pm": 0 }, { "add_time": "2019-03-22 15:56", "title": "購買商品", "number": "0.00", "pm": 0 }] }, { "money": "2019-01", "list": [{ "add_time": "2019-01-22 16:02", "title": "用戶余額充值", "number": "0.10", "pm": 1 }] }], "count": 0 } ~~~ #### 我的積分明細 需要完善類型篩選 * 接口說明 我的積分明細 * 請求地址 /user\_api/user\_integral\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | type | int | 賬單類型0全部,1消費2簽到 | 否 | | page | int | 請求起始頁數,默認1 | 否 | | limit | int | 請求條數 | 否 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "mark": "用戶累計簽到第1天", "pm": 1, "number": 10, "add_time": "2019\/03\/29 12:26" }, { "mark": "購買商品使用986積分抵扣9.86元", "pm": 0, "number": 986, "add_time": "2019\/03\/29 10:36" }, { "mark": "購買商品使用3積分抵扣0.03元", "pm": 0, "number": 3, "add_time": "2019\/03\/22 16:11" }, { "mark": "購買商品使用2積分抵扣0.02元", "pm": 0, "number": 2, "add_time": "2019\/03\/22 16:06" }, { "mark": "購買商品使用3積分抵扣0.03元", "pm": 0, "number": 3, "add_time": "2019\/03\/22 16:05" }, { "mark": "購買商品使用3積分抵扣0.03元", "pm": 0, "number": 3, "add_time": "2019\/03\/22 16:02" }, { "mark": "購買商品使用3積分抵扣0.03元", "pm": 0, "number": 3, "add_time": "2019\/03\/22 15:56" }, { "mark": "系統增加了1000積分", "pm": 1, "number": 1000, "add_time": "2019\/03\/22 15:56" }] } ~~~ ### 簽到接口 #### 簽到接口 * 接口說明 簽到 * 請求地址 /user\_api/user\_sign * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "簽到獲得10積分", "data": { "integral": "10" }, "count": 0 } ~~~ #### 我的簽到記錄 * 接口說明 我的簽到記錄 * 請求地址 /user\_api/get\_sign\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | page | int | 請求起始頁數,默認1 | 是 | | limit | int | 請求條數 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "add_time": "2019-03-29", "title": "用戶累計簽到第1天", "number": "10.00" }], "count": 0 } ~~~ #### 歷史簽到記錄 * 接口說明 歷史簽到記錄 * 請求地址 /user\_api/get\_sign\_month\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | page | int | 請求起始頁數,默認1 | 是 | | limit | int | 請求條數 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "data": [{ "month": "2019-03", "list": [{ "add_time": "2019-03-29", "title": "用戶累計簽到第1天", "number": "10.00" }] }], "page": 2 }, "count": 0 } ~~~ ### 推廣中心 #### 昨日收益 * 接口說明 獲取最新活動 * 請求地址 /user\_api/yesterday\_commissio * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": 0 } ~~~ #### 申請提現 * 接口說明 申請提現接口 * 請求地址 /user\_api/user\_extract * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | extract\_type | string | 提現方式'bank'銀行卡提現,'weixin'微信提現,'alipay'支付寶提現 | 是 | | name | string | 提現人姓名 | 否 | | cardnum | string | 銀行卡號 | 否 | | money | string | 申請提現金額 | 是 | | bankname | string | 銀行名字 | 否 | | alipay\_code | string | 支付寶賬號 | 否 | 示例 ~~~ //銀行卡 { "lists": { "name": "許先生", "cardnum": "622202377772767", "money": "200", "extract_type": "bank", "bankname": "工商銀行" } } //微信提現 { "lists": { "money": "200", "extract_type": "weixin" } } //支付寶 { "lists": { "name": "rongyao_xu@163.com", "money": "200", "extract_type": "alipay", "alipay_code": "rongyao_xu@163.com" } } ~~~ * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": 0 } ~~~ #### 提現獲取配置接口 * 接口說明 獲取銀行列表和最小提現金額 * 請求地址 /public\_api/get\_user\_extract\_bank * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "extractBank": ["中國農行", "中國建設銀行", "工商銀行"], "minPrice": 100 //最小提現金額 } } ~~~ #### 我的分享海報 * 接口說明 我的分享海報 * 請求地址 /user\_api/user\_spread\_banner\_lis * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [{ "id": 161, "title": "分享海報", "pic": "http:\/\/datong.crmeb.net\/public\/uploads\/attach\/2019\/03\/29\/5c9e1ef640019.jpg", "poster": "http:\/\/datong.crmeb.net\/public\/uploads\/routine\/poster\/2019\/03\/29\/161_2.png" }] } ~~~ #### 我的推廣人數 建議和下面接口合并 * 接口說明 我的推廣人數 * 請求地址 /user\_api/team * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "total": 0, "totalLevel": 0 } } ~~~ #### 我的推廣人列表 oder 參數名字建議換一下,type 字段名字也換一下 * 接口說明 我的推廣人列表 * 請求地址 /user\_api/user\_spread\_new\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | first | int | 默認0 | 否 | | limit | int | 沒次獲取數量 | 否 | | keyword | int | 搜索關鍵詞 | 否 | | type | int | 類型默認0一級,1二級 | 否 | | order | int | 排序 'childCount DESC'團隊人數倒序,'childCount ASC'團隊人數正序,'numberCount DESC'消費金額倒序,'numberCount ASC'消費金額正序,'orderCount DESC'訂單數量倒序,'orderCount ASC'訂單數量正序 | 否 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": [ { "uid": 4, "nickname": "徐斗明", "avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/b3WKhsUahEKcwhibePOT8ODQaLZzhLKWpBkiaEoNMj5MNtlQ7FE8ylSMFVYKtVyTAicJTibAk4JdIPPvcdRRRoLLYQ\/132", "time": "2019\/01\/21", "childCount": 0, "orderCount": 19, "numberCount": "2834.10" }, { "uid": 5, "nickname": "胡智超", "avatar": "https:\/\/wx.qlogo.cn\/mmhead\/x2TEry65icUTPq3jnwDuDOfZsAdqpeoI6l8Kkj0a7jsk\/132", "time": "2019\/01\/21", "childCount": 0, "orderCount": 0, "numberCount": null }, { "uid": 6, "nickname": "弱冠而立_", "avatar": "https:\/\/wx.qlogo.cn\/mmopen\/vi_32\/ajNVdqHZLLCiaibOuHIPWChibiaUANzk8WeFicCubpeEwVYf3hoiaA51qAYjtVR03Nsv4JT3wcs8BGs6FicCaibT0C3rjg\/132", "time": "2019\/01\/21", "childCount": 4, "orderCount": 8, "numberCount": "2186.07" }, { "uid": 7, "nickname": "王淳紫", "avatar": "https:\/\/wx.qlogo.cn\/mmhead\/5gRq3ia05J69p4zc1Cthd1iajysUvymMSYxveib9ybGJ20\/132", "time": "2019\/01\/21", "childCount": 1, "orderCount": 0, "numberCount": null }, { "uid": 8, "nickname": "邱淑貞", "avatar": "https:\/\/wx.qlogo.cn\/mmhead\/TwSTp0ZOcMHf9jxJGAI2wLxqx74fBR8pHKU9U0o396A\/132", "time": "2019\/01\/21", "childCount": 0, "orderCount": 0, "numberCount": null }, { "uid": 9, "nickname": "弱冠而立_", "avatar": "http:\/\/thirdwx.qlogo.cn\/mmopen\/0yOibuhvkGFib3C7lgPfs2Dhr87FQUPoIic9FqyWzfTspYMMibD0uM0x5N2AHtyPGTywOkVNHyhI1hyodjcUVSibh0Q\/132", "time": "2019\/01\/22", "childCount": 0, "orderCount": 1, "numberCount": "1.00" }, { "uid": 10, "nickname": "徐斗明", "avatar": "http:\/\/thirdwx.qlogo.cn\/mmopen\/R4EyJCxQnIfNaJ3ibNCp4vuQTH2CIibDLAicFsLk7AMVkDBTxochREzIYAaj50vNRWvWPSsdZFM8VTCLNUyDBbcwdPSIFA3eG5K\/132", "time": "2019\/01\/22", "childCount": 0, "orderCount": 0, "numberCount": null }, { "uid": 11, "nickname": "林馨儀", "avatar": "https:\/\/wx.qlogo.cn\/mmhead\/NVscISQ1icjE2ic4gKXfx5HajElCnAMJQPRr3W3UQEHZM\/132", "time": "2019\/01\/22", "childCount": 0, "orderCount": 0, "numberCount": null }] } ~~~ #### 傭金明細 接口錯誤 * 接口說明 獲取用戶傭金明細 * 請求地址 /user\_api/get\_record\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "list": [{ "time": "2019-03", "child": [{ "title": "傭金收入", "time": "2019-03-29 20:28", "number": "0.10", "pm": 1 }, { "title": "傭金收入", "time": "2019-03-28 22:42", "number": "0.00", "pm": 0 }] }, { "time": "2019-01", "child": [{ "title": "傭金收入", "time": "2019-01-22 16:02", "number": "0.10", "pm": 1 }] }], "count": "0.20" } } ~~~ #### 推廣訂單總數 * 接口說明 推廣訂單總數 * 請求地址 /user\_api/get\_record\_order\_count * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "", "data": 0 } ~~~ #### 推廣訂單列表 暫時沒有 * 接口說明 推廣訂單總數 * 請求地址 /user\_api/get\_record\_order\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | page | int | 請求起始頁數,默認1 | 是 | | limit | int | 請求條數 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "", "data": [] } ~~~ #### 提現記錄 參數 first 換成page,該接口是不是和資金記錄可以合并 * 接口說明 提現記錄 * 請求地址 /user\_api/get\_record\_list * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | page | int | 請求起始頁數,默認1 | 否 | | limit | int | 請求條數 | 否 | | category | string | now\_money | 是 | | type | string | extract | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "list": [], "count": 0 } } ~~~ #### 提現總額無接口建議和提現列表接口合并 ### 活動接口 #### 獲取最新活動 * 接口說明 獲取最新活動 * 請求地址 /user\_api/get\_activity * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "is_bargin": true, "is_pink": true, "is_seckill": false }, "count": 0 } ~~~ ### 其它接口 #### 獲取組合數據 * 接口說明 獲取組合數據 * 請求地址 /get\_system\_group\_data\_value * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | name | string | 組合數據名稱 | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": { "sign_day_num": [{ "id": 147, "day": "第一天", "sign_num": "10" }, { "id": 148, "day": "第二天", "sign_num": "20" }, { "id": 149, "day": "第三天", "sign_num": "30" }, { "id": 150, "day": "第四天", "sign_num": "40" }, { "id": 151, "day": "第五天", "sign_num": "50" }, { "id": 152, "day": "第六天", "sign_num": "60" }, { "id": 153, "day": "獎勵", "sign_num": "111" }] }, "count": 0 } ~~~ #### 創建formID * 接口說明 創建formid 方便接收模版消息 * 請求地址 /public\_api/get\_form\_id * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | formIds | json | 批量生成fomrID | 是 | 示例 ~~~ { "formIds": ["the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one", "the formId is a mock one"] } ~~~ * 請求方式 POST * 響應數據 ~~~ { "code": 200, "msg": "", "data": [], "count": 0 } ~~~ #### 標準格式 * 接口說明 接口詳細說明 * 請求地址 /store\_api/url * 請求參數 | 參數名稱 | 類型 | 描述 | 是否必須 | | --- | --- | --- | --- | | token | string | 授權token header中提交 | 是 | | pid | int | 收藏ID | 是 | * 請求方式 GET * 響應數據 ~~~ { "code": 200, "msg": "ok", "data": 1, "count": 0 } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看