Commit 72efc9e7 by 前端

环境

1 parent 1cdcc87e
......@@ -33,14 +33,10 @@ module.exports = {
});
},
getToken(data) {
return http.post(
{
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken",
projectName: "boutique",
},
false,
"test"
);
return http.post({
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken",
projectName: "boutique",
});
},
/** 查询接待素材详情 */
getFindSoureDetail(data) {
......
......@@ -11,7 +11,6 @@ const HOST = {
scrm: domain,
dj: djDomain,
merchant: merchantDomain,
test: "http://192.168.3.226:9711",
};
class Request {
get(params, returnAll = false, hostType) {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:51
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -56,6 +56,12 @@ const uploadFile = function (filePath) {
if (res.statusCode != 200) {
reject(new Error("上传错误:" + JSON.stringify(res)));
}
// uni.removeSavedFile({
// filePath,
// complete: function (res) {
// console.log(res);
// }
// });
resolve(aliyunServerURL + aliyunFileKey);
},
fail: function (err) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!