|
@@ -148,7 +148,7 @@ class Order extends ApiController
|
|
|
* @return mixed
|
|
* @return mixed
|
|
|
* @throws \Lettered\Support\Exceptions\FailedException
|
|
* @throws \Lettered\Support\Exceptions\FailedException
|
|
|
*/
|
|
*/
|
|
|
- public function receive()
|
|
|
|
|
|
|
+ public function receive(App $app = null)
|
|
|
{
|
|
{
|
|
|
$param = $this->request->param();
|
|
$param = $this->request->param();
|
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
$id = isset($param['id']) ? $param['id'] : 0;
|
|
@@ -232,7 +232,7 @@ class Order extends ApiController
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $wechat = new Wechat();
|
|
|
|
|
|
|
+ $wechat = new Wechat($app,$this->auth);
|
|
|
$wechat->subscribe_message->send($this->tpl1);
|
|
$wechat->subscribe_message->send($this->tpl1);
|
|
|
return IResponse::success('接单成功,请尽快前往客户所在地接驾');
|
|
return IResponse::success('接单成功,请尽快前往客户所在地接驾');
|
|
|
}
|
|
}
|