正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
@@ -47,6 +47,7 @@ class Share extends WechatBase | @@ -47,6 +47,7 @@ class Share extends WechatBase | ||
47 | } | 47 | } |
48 | 48 | ||
49 | public function get_poster(){ | 49 | public function get_poster(){ |
50 | + $domain_name = $this->request->domain();//域名 | ||
50 | $user_id = $this->request->param('user_id',0,'intval'); | 51 | $user_id = $this->request->param('user_id',0,'intval'); |
51 | $type = $this->request->param('type',0,'intval'); | 52 | $type = $this->request->param('type',0,'intval'); |
52 | if(empty($user_id) || empty($type)){ | 53 | if(empty($user_id) || empty($type)){ |
@@ -60,7 +61,7 @@ class Share extends WechatBase | @@ -60,7 +61,7 @@ class Share extends WechatBase | ||
60 | $code_img = $this->get_code_img($user_id); | 61 | $code_img = $this->get_code_img($user_id); |
61 | //图像处理 | 62 | //图像处理 |
62 | $url = $this->processing($code_img,$user,$type); | 63 | $url = $this->processing($code_img,$user,$type); |
63 | - $this->success('SUCCESS','',['url'=>$url]); | 64 | + $this->success('SUCCESS','',['url'=>$domain_name.$url]); |
64 | } | 65 | } |
65 | 66 | ||
66 | /** | 67 | /** |
@@ -95,7 +96,7 @@ class Share extends WechatBase | @@ -95,7 +96,7 @@ class Share extends WechatBase | ||
95 | ->water($url,[212,622],100) | 96 | ->water($url,[212,622],100) |
96 | ->save($savePath."poster_$user[id].png"); | 97 | ->save($savePath."poster_$user[id].png"); |
97 | } | 98 | } |
98 | - return "./uploads/poster$type/poster_$user[id].png"; | 99 | + return "/uploads/poster$type/poster_$user[id].png"; |
99 | } | 100 | } |
100 | 101 | ||
101 | /** | 102 | /** |
-
请 注册 或 登录 后发表评论