作者 anyv
1 个管道 的构建 通过 耗费 0 秒

10

@@ -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'];