This commit is contained in:
richboo111
2024-01-24 11:13:15 +08:00
parent 8befc6abf1
commit 389abeeb17

View File

@@ -10,6 +10,8 @@ import (
"strings"
"time"
"github.com/astaxie/beego/client/orm"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner"
@@ -666,8 +668,8 @@ func GetDefaultTemplate(appID, vendorStoreID string, vendorID int) (string, erro
phoneNum = " "
t string
)
store, err := dao.GetStoreDetail2(dao.GetDB(), 0, vendorStoreID, vendorID)
if err != nil {
store, err := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), vendorStoreID, vendorID, "")
if err != nil && err != orm.ErrNoRows {
return "", err
}
if len(store.Tel1) > 0 {