Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wandouchengzhang_coach
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
石盼盼
wandouchengzhang_coach
Commits
be7bf73c
Commit
be7bf73c
authored
Dec 14, 2020
by
石盼盼
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'shipanpan' into 'master'
Shipanpan See merge request
!69
parents
59831294
b2e7b4c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app.js
app.js
+2
-2
base.js
utils/base.js
+2
-2
No files found.
app.js
View file @
be7bf73c
...
@@ -58,7 +58,7 @@ App({
...
@@ -58,7 +58,7 @@ App({
codeChangeToken
(
code
,
cb
)
{
codeChangeToken
(
code
,
cb
)
{
let
that
=
this
let
that
=
this
wx
.
request
({
wx
.
request
({
url
:
'
https://wandoutiyu.
test.
xueyoubangedu.com/api/getsessionkey
'
,
url
:
'
https://wandoutiyu.xueyoubangedu.com/api/getsessionkey
'
,
data
:
{
data
:
{
code
:
code
code
:
code
},
},
...
@@ -87,7 +87,7 @@ App({
...
@@ -87,7 +87,7 @@ App({
wx
.
checkSession
({
wx
.
checkSession
({
success
()
{
success
()
{
wx
.
request
({
wx
.
request
({
url
:
'
https://wandoutiyu.
test.
xueyoubangedu.com/api/saveinfo
'
,
url
:
'
https://wandoutiyu.xueyoubangedu.com/api/saveinfo
'
,
data
:
{
data
:
{
encryptedData
:
encodeURIComponent
(
info
.
encryptedData
),
encryptedData
:
encodeURIComponent
(
info
.
encryptedData
),
iv
:
encodeURIComponent
(
info
.
iv
),
iv
:
encodeURIComponent
(
info
.
iv
),
...
...
utils/base.js
View file @
be7bf73c
...
@@ -3,8 +3,8 @@ var app = getApp()
...
@@ -3,8 +3,8 @@ var app = getApp()
const
qiniuUploader
=
require
(
"
./qiniuUploader.js
"
);
const
qiniuUploader
=
require
(
"
./qiniuUploader.js
"
);
class
Base
{
class
Base
{
constructor
()
{
constructor
()
{
//
this.baseUrl = 'https://wandoutiyu.xueyoubangedu.com/api/' //线上接口
this
.
baseUrl
=
'
https://wandoutiyu.xueyoubangedu.com/api/
'
//线上接口
this
.
baseUrl
=
'
https://wandoutiyu.test.xueyoubangedu.com/api/
'
//测试接口
//
this.baseUrl = 'https://wandoutiyu.test.xueyoubangedu.com/api/' //测试接口
}
}
newRequest
(
params
,
flag
=
false
,
tips
=
true
)
{
newRequest
(
params
,
flag
=
false
,
tips
=
true
)
{
let
that
=
this
let
that
=
this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment