|
|
@@ -153,7 +153,6 @@ class WechatService
|
|
|
public static function create($isApp = null)
|
|
|
{
|
|
|
$config = self::getConfig($isApp);
|
|
|
- @file_put_contents('quanju3.txt',$isApp."-isApp信息\r\n",8);
|
|
|
@file_put_contents('quanju3.txt',json_encode($config)."-getConfig\r\n",8);
|
|
|
return new self(self::getConfig($isApp));
|
|
|
}
|
|
|
@@ -188,9 +187,13 @@ class WechatService
|
|
|
*/
|
|
|
public function serve(\think\Request $request)
|
|
|
{
|
|
|
- @file_put_contents('quanju3.txt',"-是走这里吗\r\n",8);
|
|
|
+ @file_put_contents('quanju3.txt',json_encode($request)."-是走这里吗\r\n",8);
|
|
|
$this->serverRequest($request);
|
|
|
+ @file_put_contents('quanju3.txt',"-two\r\n",8);
|
|
|
$this->wechatEventHook();
|
|
|
+ @file_put_contents('quanju3.txt',"-hair\r\n",8);
|
|
|
+ $air=response($this->application->server->serve()->getContent());
|
|
|
+ @file_put_contents('quanju3.txt',$air."-hair\r\n",8);
|
|
|
return response($this->application->server->serve()->getContent());
|
|
|
}
|
|
|
|