feat:新增订单发票,下单地址调整

This commit is contained in:
momo
2023-10-17 18:32:43 +08:00
parent 0310a6bd21
commit 6ae2cce870
23 changed files with 848 additions and 59 deletions

View File

@@ -43,10 +43,10 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
// userinfo 传入值时, 一定不为null
if userinfo.IsOnlooker() {
// 如果是,返回未授权的错误码
return resp.SetStatus(basic.CodeUnAuth)
}
// if userinfo.IsOnlooker() {
// // 如果是,返回未授权的错误码
// return resp.SetStatus(basic.CodeUnAuth)
// }
if req.TemplateId == 0 || req.TemplateTag == "" {
return resp.SetStatus(basic.CodeLogoCombineNoFoundErr, "模版或标签不存在")