正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -58,7 +58,7 @@ class ExtendLogic extends BaseLogic | @@ -58,7 +58,7 @@ class ExtendLogic extends BaseLogic | ||
| 58 | public function getKey($key){ | 58 | public function getKey($key){ |
| 59 | $info = $this->model->read(['key'=>$key]); | 59 | $info = $this->model->read(['key'=>$key]); |
| 60 | if($info !== false){ | 60 | if($info !== false){ |
| 61 | - $key .= '_1'; | 61 | + $key .= '-'.rand(1, 100); |
| 62 | return $this->getKey($key); | 62 | return $this->getKey($key); |
| 63 | } | 63 | } |
| 64 | return $key; | 64 | return $key; |
-
请 注册 或 登录 后发表评论