Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 72efc9e7
authored
Apr 10, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
环境
1 parent
1cdcc87e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
api/module/common.js
api/request/http.js
utils/ossUploadFile/uploadFile.js
api/module/common.js
View file @
72efc9e
...
@@ -33,14 +33,10 @@ module.exports = {
...
@@ -33,14 +33,10 @@ module.exports = {
});
});
},
},
getToken
(
data
)
{
getToken
(
data
)
{
return
http
.
post
(
return
http
.
post
({
{
method
:
"dj.api.smartcarlife.recepiton.customer.oss.getToken"
,
method
:
"dj.api.smartcarlife.recepiton.customer.oss.getToken"
,
projectName
:
"boutique"
,
projectName
:
"boutique"
,
},
});
false
,
"test"
);
},
},
/** 查询接待素材详情 */
/** 查询接待素材详情 */
getFindSoureDetail
(
data
)
{
getFindSoureDetail
(
data
)
{
...
...
api/request/http.js
View file @
72efc9e
...
@@ -11,7 +11,6 @@ const HOST = {
...
@@ -11,7 +11,6 @@ const HOST = {
scrm
:
domain
,
scrm
:
domain
,
dj
:
djDomain
,
dj
:
djDomain
,
merchant
:
merchantDomain
,
merchant
:
merchantDomain
,
test
:
"http://192.168.3.226:9711"
,
};
};
class
Request
{
class
Request
{
get
(
params
,
returnAll
=
false
,
hostType
)
{
get
(
params
,
returnAll
=
false
,
hostType
)
{
...
...
utils/ossUploadFile/uploadFile.js
View file @
72efc9e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:51
* @Date: 2024-04-07 17:09:51
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-
08 10:53:2
9
* @LastEditTime: 2024-04-
10 12:58:3
9
* @FilePath: \gl_tape\utils\ossUploadFile\uploadFile.js
* @FilePath: \gl_tape\utils\ossUploadFile\uploadFile.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -56,6 +56,12 @@ const uploadFile = function (filePath) {
...
@@ -56,6 +56,12 @@ const uploadFile = function (filePath) {
if
(
res
.
statusCode
!=
200
)
{
if
(
res
.
statusCode
!=
200
)
{
reject
(
new
Error
(
"上传错误:"
+
JSON
.
stringify
(
res
)));
reject
(
new
Error
(
"上传错误:"
+
JSON
.
stringify
(
res
)));
}
}
// uni.removeSavedFile({
// filePath,
// complete: function (res) {
// console.log(res);
// }
// });
resolve
(
aliyunServerURL
+
aliyunFileKey
);
resolve
(
aliyunServerURL
+
aliyunFileKey
);
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment