修改验证天数
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -132,7 +132,7 @@ class PropertyTrackService extends Service | ... | @@ -132,7 +132,7 @@ class PropertyTrackService extends Service |
| 132 | $propertyConfig = config('musician.property'); | 132 | $propertyConfig = config('musician.property'); |
| 133 | $share = $propertyConfig['base_url'].uniqid(); | 133 | $share = $propertyConfig['base_url'].uniqid(); |
| 134 | $share_url_hash = crc64($share); | 134 | $share_url_hash = crc64($share); |
| 135 | $expire_time = time() + $propertyConfig['token_valid']; | 135 | $expire_time = time() + $propertyConfig['valid_day']; |
| 136 | 136 | ||
| 137 | //生成新链接-上一个失效 | 137 | //生成新链接-上一个失效 |
| 138 | try { | 138 | try { |
| ... | @@ -200,7 +200,7 @@ class PropertyTrackService extends Service | ... | @@ -200,7 +200,7 @@ class PropertyTrackService extends Service |
| 200 | ]; | 200 | ]; |
| 201 | 201 | ||
| 202 | $token = getToken(mt_rand()); | 202 | $token = getToken(mt_rand()); |
| 203 | RedisClient::instance()->set($token, json_encode($info), 'EX', 86400); | 203 | RedisClient::instance()->set($token, json_encode($info), 'EX', config('musician.property')['token_valid']); |
| 204 | return Response::success(['token'=>$token]); | 204 | return Response::success(['token'=>$token]); |
| 205 | } | 205 | } |
| 206 | 206 | ... | ... |
-
Please register or sign in to post a comment