Commit 72efc9e7 by 前端

环境

1 parent 1cdcc87e
...@@ -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) {
......
...@@ -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) {
......
...@@ -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:29 * @LastEditTime: 2024-04-10 12:58:39
* @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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!