作者 tangxuhui

修正 ,开发环境配置

... ... @@ -17,9 +17,9 @@ HTTPSKeyFile = "conf/fjmaimaimai.com_rsa.key"
##数据库连接
# sqlconn ="${MYSQL_CONN||root:sutianxia2015@tcp(115.29.205.99:3306)/opportunity?charset=utf8&loc=Asia%2FShanghai}"
mysql_user = "${MYSQL_USER||root}"
mysql_password = "${MYSQL_PASSWORD||sutianxia2018}"
mysql_host = "${MYSQL_HOST||101.37.68.23}"
mysql_port = "${MYSQL_PORT||3306}"
mysql_password = "${MYSQL_PASSWORD||eagle1010}"
mysql_host = "${MYSQL_HOST||114.55.200.59}"
mysql_port = "${MYSQL_PORT||32306}"
mysql_db_name = "${MYSQL_DB_NAME||opportunity_dev}"
##redis相关配置
redis_add = "${REDIS_HOST||127.0.0.1}"
... ...
... ... @@ -700,7 +700,7 @@ func EmployeeChangePhone(data EmployeeChangePhoneData) error {
var oldUserAuthData *models.UserAuth
oldUserAuthData, err = models.GetUserAuthByUser(oldUser.Id)
if err != nil {
log.Warn("找到userAuth数据,user_id=%d", oldUser.Id)
log.Warn("找到userAuth数据,user_id=%d", oldUser.Id)
} else {
oldUserAuthData.AccessToken = ""
oldUserAuthData.RefreshToken = ""
... ...