Browse Source

no message

zhangchuanxing 17 hours ago
parent
commit
d4042cfc3c
2 changed files with 3 additions and 0 deletions
  1. 1 0
      models/db.go
  2. 2 0
      services/wx_user.go

+ 1 - 0
models/db.go

@@ -205,6 +205,7 @@ func init() {
 	initRaiServe()   // 权益服务记录模块
 	initFiccReport() // 权益服务记录模块
 	initYidong()     // 易董初始化数据模块
+	initWxUseer()    // 用户相关模块
 
 	// 记录ORM查询日志
 	orm.Debug = true

+ 2 - 0
services/wx_user.go

@@ -1537,6 +1537,7 @@ func GetWxUserEndDate(user *models.WxUserItem) (isShowTerminateButton bool, endD
 			err = errors.New("GetCompanyProductDetailByCompanyId, Err: " + e.Error())
 			return
 		}
+
 		if total == 0 {
 			isShowTerminateButton = true
 			endDataButton = productDetail.EndDate
@@ -1547,6 +1548,7 @@ func GetWxUserEndDate(user *models.WxUserItem) (isShowTerminateButton bool, endD
 				CompanyId:   user.CompanyId,
 				CompanyName: user.CompanyName,
 				RealName:    user.RealName,
+				EndDate:     endDataButton,
 				CreateTime:  time.Now(),
 				ModifyTime:  time.Now(),
 			}