|
|
@@ -4,6 +4,7 @@ namespace hd\controllers;
|
|
|
|
|
|
use Yii;
|
|
|
use Abbotton\MeituanTakeaway\Application;
|
|
|
+use yii\helpers\Json;
|
|
|
|
|
|
class MtController extends PublicController
|
|
|
{
|
|
|
@@ -33,7 +34,7 @@ class MtController extends PublicController
|
|
|
Yii::warning('newOrder: ' . json_encode($get));
|
|
|
}
|
|
|
|
|
|
- return;
|
|
|
+ return Json::encode(['data' => 'ok']);
|
|
|
|
|
|
$app = new Application($this->config);
|
|
|
|
|
|
@@ -57,6 +58,6 @@ class MtController extends PublicController
|
|
|
Yii::warning('cancelOrder: ' . json_encode($get));
|
|
|
}
|
|
|
|
|
|
- return;
|
|
|
+ return Json::encode(['data' => 'ok']);
|
|
|
}
|
|
|
}
|