Commit d8a980d660c5fae4418bc761cf590dbc06cbbe34
1 parent
3270c684
上传头像
Showing
1 changed file
with
0 additions
and
5 deletions
phpapi/apicp.UploadHeadImg.php
@@ -5,10 +5,6 @@ | @@ -5,10 +5,6 @@ | ||
5 | header('Access-Control-Allow-Origin:*'); | 5 | header('Access-Control-Allow-Origin:*'); |
6 | header("Access-Control-Allow-Methods:GET,POST"); | 6 | header("Access-Control-Allow-Methods:GET,POST"); |
7 | 7 | ||
8 | - //报告运行时错误 | ||
9 | - error_reporting(E_ERROR | E_WARNING | E_PARSE); | ||
10 | - //报告所有错误 | ||
11 | - error_reporting(E_ALL); | ||
12 | /** | 8 | /** |
13 | * 用户上传头像 | 9 | * 用户上传头像 |
14 | */ | 10 | */ |
@@ -33,7 +29,6 @@ | @@ -33,7 +29,6 @@ | ||
33 | // 获取头像数据,从微信临时素材图片中。 | 29 | // 获取头像数据,从微信临时素材图片中。 |
34 | $wechat = new WechatHelper(); | 30 | $wechat = new WechatHelper(); |
35 | $img = $wechat->getMedia($_POST['mediaId']); | 31 | $img = $wechat->getMedia($_POST['mediaId']); |
36 | - | ||
37 | 32 | ||
38 | // 保存图片 | 33 | // 保存图片 |
39 | $filename = time() . rand(1000, 9999) . ".jpg"; | 34 | $filename = time() . rand(1000, 9999) . ".jpg"; |