Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Damon
study
Commits
29bb585c
Commit
29bb585c
authored
Aug 05, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 更换七牛上传空间
parent
f4ce8caa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
.env.dev.js
.env.dev.js
+1
-1
.env.prod.js
.env.prod.js
+1
-1
.env.test.js
.env.test.js
+1
-1
upload.js
src/common/upload.js
+1
-1
info.vue
src/pages/mine/info.vue
+1
-1
No files found.
.env.dev.js
View file @
29bb585c
const
UNI_APP
=
{
const
UNI_APP
=
{
apiUrl
:
'http://192.168.1.22:8760'
,
apiUrl
:
'http://192.168.1.22:8760'
,
qn_base_url
:
'https://qn-static.banshouhui.com/study/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/study/'
,
qn_asset_url
:
'https://
img2.banshouhui.com
/'
,
qn_asset_url
:
'https://
zhenxiangxd.top
/'
,
argoDebugMode
:
1
,
argoDebugMode
:
1
,
version
:
'v1.0.0'
,
version
:
'v1.0.0'
,
}
}
...
...
.env.prod.js
View file @
29bb585c
const
UNI_APP
=
{
const
UNI_APP
=
{
apiUrl
:
'https://exam.zhenxiangxd.top'
,
apiUrl
:
'https://exam.zhenxiangxd.top'
,
qn_base_url
:
'https://qn-static.banshouhui.com/study/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/study/'
,
qn_asset_url
:
'https://
img2.banshouhui.com
/'
,
qn_asset_url
:
'https://
zhenxiangxd.top
/'
,
argoDebugMode
:
1
,
argoDebugMode
:
1
,
version
:
'v1.0.0'
,
version
:
'v1.0.0'
,
}
}
...
...
.env.test.js
View file @
29bb585c
const
UNI_APP
=
{
const
UNI_APP
=
{
apiUrl
:
'https://exam.banshouhui.com'
,
apiUrl
:
'https://exam.banshouhui.com'
,
qn_base_url
:
'https://qn-static.banshouhui.com/study/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/study/'
,
qn_asset_url
:
'https://
img2.banshouhui.com
/'
,
qn_asset_url
:
'https://
zhenxiangxd.top
/'
,
argoDebugMode
:
1
,
argoDebugMode
:
1
,
version
:
'v1.0.0'
,
version
:
'v1.0.0'
,
}
}
...
...
src/common/upload.js
View file @
29bb585c
...
@@ -78,7 +78,7 @@ function upload(filePath, token) {
...
@@ -78,7 +78,7 @@ function upload(filePath, token) {
let
key
=
let
key
=
new
Date
().
getTime
()
+
Math
.
random
(
1000
)
+
filePath
.
split
(
'/'
).
pop
()
//key为自定义文件名
new
Date
().
getTime
()
+
Math
.
random
(
1000
)
+
filePath
.
split
(
'/'
).
pop
()
//key为自定义文件名
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
'https://up.qiniup.com'
,
// default ecn华北的地址,在七牛云中选择对应位置的网址
url
:
'https://up
-z2
.qiniup.com'
,
// default ecn华北的地址,在七牛云中选择对应位置的网址
filePath
:
filePath
,
filePath
:
filePath
,
name
:
'file'
,
name
:
'file'
,
formData
:
{
formData
:
{
...
...
src/pages/mine/info.vue
View file @
29bb585c
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
onLoad
()
{
onLoad
()
{
this
.
refleshCode
()
this
.
refleshCode
()
this
.
$u
.
api
this
.
$u
.
api
.
getQiNiuToken
({
bucketName
:
'
banshou-userprofile
'
})
.
getQiNiuToken
({
bucketName
:
'
wsy-exam
'
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
qiToken
=
res
this
.
qiToken
=
res
getApp
().
globalData
.
qiNiuToken
=
res
getApp
().
globalData
.
qiNiuToken
=
res
...
...
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