Browse Source

update

master
dengbiao 4 months ago
parent
commit
6e9958c136
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      README.md
  2. +1
    -1
      app/lib/auth/auth.go
  3. +1
    -1
      app/md/app_redis_key.go
  4. +1
    -1
      cmd_db.bat

+ 1
- 1
README.md View File

@@ -1,4 +1,4 @@
# 广告站长平台
# 广告站长平台


## 要看 nginx.conf 和 wap conf ## 要看 nginx.conf 和 wap conf




+ 1
- 1
app/lib/auth/auth.go View File

@@ -14,7 +14,7 @@ func GenToken(admId int, username string) (string, error) {
Username: username, Username: username,
StandardClaims: jwt.StandardClaims{ StandardClaims: jwt.StandardClaims{
ExpiresAt: time.Now().Add(TokenExpireDuration).Unix(), // 过期时间 ExpiresAt: time.Now().Add(TokenExpireDuration).Unix(), // 过期时间
Issuer: "advertisement", // 签发人
Issuer: "super_advertisement", // 签发人
}, },
} }
// 使用指定的签名方法创建签名对象 // 使用指定的签名方法创建签名对象


+ 1
- 1
app/md/app_redis_key.go View File

@@ -2,7 +2,7 @@ package md


// 缓存key统一管理, %s格式化为masterId // 缓存key统一管理, %s格式化为masterId
const ( const (
JwtTokenKey = "%s:advertisement_jwt_token:%s" // jwt, 占位符:ip, admin:id
JwtTokenKey = "%s:super_advertisement_jwt_token:%s" // jwt, 占位符:ip, admin:id


JwtTokenCacheTime = 3600 * 24 JwtTokenCacheTime = 3600 * 24




+ 1
- 1
cmd_db.bat View File

@@ -12,7 +12,7 @@ if "%one%" NEQ "" (
set BasePath="./" set BasePath="./"
set DBUSER="root" set DBUSER="root"
set DBPSW="Fnuo123com@" set DBPSW="Fnuo123com@"
set DBNAME="advertisement"
set DBNAME="super_advertisement"
set DBHOST="119.23.182.117" set DBHOST="119.23.182.117"
set DBPORT="3306" set DBPORT="3306"




Loading…
Cancel
Save