Explorar o código

Wesmiler 人人车 初始化项目 0816

APPLE %!s(int64=3) %!d(string=hai) anos
pai
achega
3a4d1dbb24
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      application/api/controller/v1/taxiUser/Order.php

+ 2 - 2
application/api/controller/v1/taxiUser/Order.php

@@ -148,7 +148,7 @@ class Order extends ApiController
      * @return mixed
      * @throws \Lettered\Support\Exceptions\FailedException
      */
-    public function receive()
+    public function receive(App $app = null)
     {
         $param = $this->request->param();
         $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);
         return IResponse::success('接单成功,请尽快前往客户所在地接驾');
     }