|
@@ -154,14 +154,14 @@ class Wechat extends Base
|
|
$mp = $this->wechat->getApp();
|
|
$mp = $this->wechat->getApp();
|
|
$path = $this->payload['path'];
|
|
$path = $this->payload['path'];
|
|
list($page, $scene) = explode('?', $path);
|
|
list($page, $scene) = explode('?', $path);
|
|
-
|
|
|
|
$content = $mp->app_code->getUnlimit($scene, [
|
|
$content = $mp->app_code->getUnlimit($scene, [
|
|
'page' => substr($page, 1),
|
|
'page' => substr($page, 1),
|
|
'is_hyaline' => true,
|
|
'is_hyaline' => true,
|
|
- // 'env_version' => 'develop'
|
|
|
|
- 'env_version' => 'release'
|
|
|
|
|
|
+ 'env_version' => 'trial'
|
|
|
|
+ //'env_version' => 'develop'
|
|
|
|
+ //'env_version' => 'release'
|
|
]);
|
|
]);
|
|
-
|
|
|
|
|
|
+
|
|
if ($content instanceof \EasyWeChat\Kernel\Http\StreamResponse) {
|
|
if ($content instanceof \EasyWeChat\Kernel\Http\StreamResponse) {
|
|
return response($content->getBody(), 200, ['Content-Length' => strlen($content->getBodyContents())])->contentType('image/png');
|
|
return response($content->getBody(), 200, ['Content-Length' => strlen($content->getBodyContents())])->contentType('image/png');
|
|
} else {
|
|
} else {
|