Browse Source

添加接口文档地址

hank 1 năm trước cách đây
mục cha
commit
062da6df36
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  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'
 import { requestAll, requestLogin, post, postWithCommonParams } from '../utils/request'
 
 
+// 接口文档:https://hyperion-novel-qa-app.mokamrp.com/swagger-ui/#/
 
 
 export const userLogin = (data) => requestLogin(data)
 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 { userLogin,getChapterUnlockStatus,getNovelDetail,addBrowsingHistory } from './api/api'
+import {apple} from './config/config'
 
 
 App({
 App({
   onLaunch(options) {
   onLaunch(options) {
@@ -39,7 +40,7 @@ App({
       wx.login({
       wx.login({
         success: res => {
         success: res => {
           userLogin({
           userLogin({
-            "appid": "wxa7a33088566e1292",
+            "appid": apple.appid,
             "channel": 1,
             "channel": 1,
             "srcType": "0",
             "srcType": "0",
             "srcAppId": "",
             "srcAppId": "",