正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
229 | 229 | ||
230 | $access_token=$this->getAccessToken(); | 230 | $access_token=$this->getAccessToken(); |
231 | $filepath = $_POST['mediaId']; | 231 | $filepath = $_POST['mediaId']; |
232 | - $str = 'uploads/'.mt_rand('100','999').'.png'; | 232 | + $str = 'uploads/'.date('YmdHis').time().rand('1000000','99999999').'.png'; |
233 | $targetName = $str; | 233 | $targetName = $str; |
234 | cache('urll',$targetName); | 234 | cache('urll',$targetName); |
235 | $access_token = $access_token['accessToken']; | 235 | $access_token = $access_token['accessToken']; |
-
请 注册 或 登录 后发表评论