3d添加印花 等
This commit is contained in:
@@ -56,8 +56,8 @@ axios.interceptors.request.use((config) => {
|
||||
return Promise.reject(error);
|
||||
});
|
||||
let isLoginTime = false
|
||||
const binaryToUrl = (binary,type = 'application/octet-stream')=>{
|
||||
let blob = new Blob([binary], {type});
|
||||
const binaryToUrl = (binary,type = 'application/octet-stream',res)=>{
|
||||
let blob = new Blob([binary], {'content-type':res.headers['content-type']});
|
||||
let url = URL.createObjectURL(blob);
|
||||
return url
|
||||
}
|
||||
@@ -68,7 +68,7 @@ axios.interceptors.response.use((res) =>{
|
||||
// return Promise.reject(res.data);
|
||||
// }else
|
||||
if(res.config.env.binary){
|
||||
let url = binaryToUrl(res.data,res.config.env.binaryType)
|
||||
let url = binaryToUrl(res.data,res.config.env.binaryType,res)
|
||||
return Promise.resolve({url,data:res.data})
|
||||
}
|
||||
if (res.data) {
|
||||
@@ -137,6 +137,7 @@ export const Https = {
|
||||
parseWeChatCode:'/api/third/party/parseWeChatCode',//微信登录
|
||||
accountIsLogin:'/api/account/isLogin', //判断用户是否登录
|
||||
accountLogin:`/api/account/login`, //账号密码登录接口
|
||||
organizationNameSearch:`/api/account/organizationNameSearch`, //查询学校或者企业版名字
|
||||
getUserLanguage:`/api/account/getUserLanguage`, //获取当前用户语言
|
||||
changeUserLanguage:`/api/account/changeUserLanguage`, //切换用户当前语言
|
||||
uploadAvatar:`/api/account/uploadAvatar`, //修改头像
|
||||
@@ -286,6 +287,9 @@ export const Https = {
|
||||
modifySketch:'/api/generate/modifySketch',//修改画布内容并且储存
|
||||
|
||||
elementUpload:`/api/element/upload`,//上传图片
|
||||
imageSegmentation:`/api/element/imageSegmentation`,//分割衣服
|
||||
|
||||
|
||||
// oldHis:`/oldHis/history/queryUserGroup`,//上传图片
|
||||
sketchBoardsBoundingBox:`/api/design/sketchBoardsBoundingBox`,//裁剪sketch图片
|
||||
|
||||
@@ -302,6 +306,20 @@ export const Https = {
|
||||
getUserInfo:`/api/inquiry/getUserInfo`,//查询所有用户
|
||||
queryTransaction:`/api/inquiry/queryTransaction`,//查询交易记录
|
||||
queryTransactionDownload:`/api/inquiry/queryTransaction/download`,//导出交易记录
|
||||
createCoupon:`/api/stripe/createCoupon`,//创建优惠码
|
||||
updatePromCodeInfo:`/api/stripe/updatePromCodeInfo`,//修改优惠码
|
||||
getAllCoupons:`/api/stripe/getAllCoupons`,//查询优惠码列表
|
||||
checkCoupon:`/api/stripe/checkCoupon`,//根据优惠码获取结算后的金额
|
||||
|
||||
//企业版教育版管理员页面
|
||||
subAccountList:`/api/account/subAccountList`,//查询子账号
|
||||
addOrUpdateSubAccount:`/api/account/addOrUpdateSubAccount`,//添加子账号
|
||||
deleteSubAccount:`/api/account/deleteSubAccount`,//删除子账号
|
||||
subAccountImportExcelDownload:`/api/account/subAccountImportExcelDownload`,//批量添加模板下载模板
|
||||
subAccountImport:`/api/account/subAccountImport`,//模板导入
|
||||
getGenerateFrequency:`/api/inquiry/getGenerateFrequency`,//积分使用详情
|
||||
getAllGenerateFuncName:`/api/inquiry/getAllGenerateFuncName`,//获取所有generate类型
|
||||
|
||||
//查询某个时间内design点击次数
|
||||
getDesignStatistic:`/api/inquiry/getDesignStatistic`,//拒绝审批
|
||||
getAllQuestionnaire:`/api/inquiry/getAllQuestionnaire`,//拒绝审批
|
||||
|
||||
Reference in New Issue
Block a user