作者 王晓刚
1 个管道 的构建 通过 耗费 8 秒

商户申请

@@ -61,7 +61,7 @@ class Share extends WechatBase @@ -61,7 +61,7 @@ class Share extends WechatBase
61 $code_img = $this->get_code_img($user_id); 61 $code_img = $this->get_code_img($user_id);
62 //图像处理 62 //图像处理
63 $url = $this->processing($code_img,$user,$type); 63 $url = $this->processing($code_img,$user,$type);
64 - $this->success('SUCCESS','',['url'=>$url]); 64 + $this->success('SUCCESS','',['url'=>$domain_name.$url]);
65 } 65 }
66 66
67 /** 67 /**
@@ -102,7 +102,7 @@ class Share extends WechatBase @@ -102,7 +102,7 @@ class Share extends WechatBase
102 ->water($url,[212,622],100) 102 ->water($url,[212,622],100)
103 ->save($savePath."poster_$user[id].png"); 103 ->save($savePath."poster_$user[id].png");
104 } 104 }
105 - return "./uploads/poster$type/poster_$user[id].png"; 105 + return "/uploads/poster$type/poster_$user[id].png";
106 } 106 }
107 107
108 /** 108 /**