|
@@ -11,7 +11,7 @@ import (
|
|
|
func CheckUserPermission(userId int) (status int, err error) {
|
|
|
if userId > 0 {
|
|
|
//wxUser, err := models.GetWxUserItemByUserId(userId)
|
|
|
- wxUser,err := GetWxUserItemByUserId(userId,utils.WxPlatform)
|
|
|
+ wxUser, err := GetWxUserItemByUserId(userId, utils.WxPlatform)
|
|
|
if err != nil {
|
|
|
if err.Error() == utils.ErrNoRow() {
|
|
|
status = 40001
|
|
@@ -54,6 +54,10 @@ func CheckUserPermission(userId int) (status int, err error) {
|
|
|
status = 40002
|
|
|
err = errors.New("非付费用户" + strconv.Itoa(userId))
|
|
|
}
|
|
|
+ if v.IsSuspend > 0 {
|
|
|
+ status = 40002
|
|
|
+ err = errors.New("客户被暂停" + strconv.Itoa(userId))
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
} else {
|