1
This commit is contained in:
@@ -88,13 +88,14 @@ func Init() {
|
||||
|
||||
// MakePrintMsgOnTemp 将打印数据渲染到模板当中
|
||||
func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error) {
|
||||
globals.SugarLogger.Debug("param===============", param)
|
||||
// 查询用户默认模板,不存在则使用系统默认模板
|
||||
userTemp := &model.SystemTemp{}
|
||||
userTemp, isHave, err := SelectUserDefaultTemp(userId, model.TempTypeMerchantUser)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
globals.SugarLogger.Debugf("========userId %s", userId)
|
||||
globals.SugarLogger.Debugf("========userId %s", utils.Format4Output(userTemp, false))
|
||||
if userTemp == nil || !isHave {
|
||||
if userTemp.TempType != "" {
|
||||
userTemp = SystemTempObj[userTemp.TempSize]
|
||||
|
||||
Reference in New Issue
Block a user