Jelajahi Sumber

添加接口文档地址

hank 1 tahun lalu
induk
melakukan
062da6df36
2 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 1 0
      api/api.js
  2. 2 1
      app.js

+ 1 - 0
api/api.js

@@ -1,5 +1,6 @@
 import { requestAll, requestLogin, post, postWithCommonParams } from '../utils/request'
 
+// 接口文档:https://hyperion-novel-qa-app.mokamrp.com/swagger-ui/#/
 
 export const userLogin = (data) => requestLogin(data)
 

+ 2 - 1
app.js

@@ -5,6 +5,7 @@ const novelPlugin = requirePlugin('novel-plugin')
 
 
 import { userLogin,getChapterUnlockStatus,getNovelDetail,addBrowsingHistory } from './api/api'
+import {apple} from './config/config'
 
 App({
   onLaunch(options) {
@@ -39,7 +40,7 @@ App({
       wx.login({
         success: res => {
           userLogin({
-            "appid": "wxa7a33088566e1292",
+            "appid": apple.appid,
             "channel": 1,
             "srcType": "0",
             "srcAppId": "",