|
@@ -1,26 +1,22 @@
|
|
|
|
|
|
- * @Author: ZhengXiaowei
|
|
|
- * @Date: 2019-10-15 14:05:33
|
|
|
- * @LastEditors: ZhengXiaowei
|
|
|
- * @LastEditTime: 2019-10-15 14:05:59
|
|
|
+ * 接口对接文件
|
|
|
* @Description: api
|
|
|
*/
|
|
|
import fly from './fly'
|
|
|
|
|
|
|
|
|
-export const getHomeList = sex => {
|
|
|
- console.log(sex)
|
|
|
+export const getHomeData = sex => {
|
|
|
return fly.get(`/books/${sex}/index`)
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const rechargeApi = params => {
|
|
|
+export const rechargeRecord = params => {
|
|
|
return fly.get('/order/chargeRecordLists', params)
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getCategory = () => {
|
|
|
- return fly.get('/books/getCategory')
|
|
|
+export const bookCategory = () => {
|
|
|
+ return fly.get('/books/bookCategory')
|
|
|
}
|
|
|
|
|
|
|
|
@@ -29,7 +25,7 @@ export const booksList = params => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getBooksInfo = bid => {
|
|
|
+export const booksInfo = bid => {
|
|
|
return fly.get(`/book/${bid}`)
|
|
|
}
|
|
|
|
|
@@ -42,11 +38,11 @@ export const getSimilarBooks = (category_id, bid) => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const chapterApi = params => {
|
|
|
+export const chapterPayRecord = params => {
|
|
|
return fly.get('/order/chapterOrderList', params)
|
|
|
}
|
|
|
|
|
|
-export const bookApi = params => {
|
|
|
+export const bookPayRecord = params => {
|
|
|
return fly.get('/order/bookOrderList', params)
|
|
|
}
|
|
|
|
|
@@ -66,12 +62,12 @@ export const getChargeList = () => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const postUserShelfBooks = params => {
|
|
|
+export const addToShelfBooks = params => {
|
|
|
return fly.post(`/userShelfBooks`, params)
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getUserShelfBooks = () => {
|
|
|
+export const userShelfBooks = () => {
|
|
|
return fly.get(`/userShelfBooks`)
|
|
|
}
|
|
|
|
|
@@ -100,7 +96,7 @@ export const deleteShelfBook = params => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getConfigOfWxH5Pay = params => {
|
|
|
+export const wxH5Pay = params => {
|
|
|
return fly.get('/goToH5Pay', params)
|
|
|
}
|
|
|
|
|
@@ -110,7 +106,7 @@ export const getConfigOfWxAppPay = params => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getConfigOfAliPay = params => {
|
|
|
+export const qappAliPay = params => {
|
|
|
return fly.get('/goToAliPay', params)
|
|
|
}
|
|
|
|
|
@@ -205,13 +201,13 @@ export const getRank = sex => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getAcitivity = token => {
|
|
|
+export const acitivityDetail = token => {
|
|
|
return fly.get('/activity/detail', { token: token })
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-export const getHotMain = pages => {
|
|
|
+export const hotWords = pages => {
|
|
|
return fly.get('/books/hotwords', { page: pages })
|
|
|
}
|
|
|
|
|
@@ -230,11 +226,6 @@ export const logOff = () => {
|
|
|
return fly.get(`user/logOff`)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-export const noAdvBookInfo = (send_order_id) => {
|
|
|
- return fly.get(`/txAdqNew/noAdvBookInfo`, { send_order_id: send_order_id })
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
export const recommendBooks = (bid) => {
|
|
|
return fly.get(`/books/recommend_books`, { bid: bid })
|
|
@@ -261,7 +252,7 @@ export const advertOrders = (order) => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-export const getBannerData = (release_type) => {
|
|
|
+export const bannerData = (release_type) => {
|
|
|
return fly.get(`/books/recommendBanners`, { release_type: release_type })
|
|
|
}
|
|
|
|
|
@@ -270,10 +261,6 @@ export const checkAdvertisement = (type, id) => {
|
|
|
return fly.get(`/books/checkAdvertisement`, { type: type, ids: id })
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-export const advReplaceBookInfo = (send_order_id) => {
|
|
|
- return fly.get("advReplaceBookInfo", { send_order_id: send_order_id });
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
@@ -286,7 +273,6 @@ export const hasPendingTask = (params) => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
export const advShield= (send_order_id, platform,checkout_tx) => {
|
|
|
return fly.get("sendOrder/advShield", { send_order_id: send_order_id,platform:platform,checkout_tx,checkout_tx});
|