|
|
@@ -19,9 +19,26 @@ class MtController extends PublicController
|
|
|
'request_url' => '', // 默认 `https://waimaiopen.meituan.com/api/v1/`
|
|
|
];
|
|
|
|
|
|
- public function actionApi()
|
|
|
+ //部分退款
|
|
|
+ public function actionPartRefund()
|
|
|
{
|
|
|
- echo '开发中...';
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ if (empty($post)) { // 无数据过来时,是美团对接口进行存活试探,请保留此段代码,好让请求在此被中断返回
|
|
|
+ return Json::encode(['data' => 'ok']);
|
|
|
+ }
|
|
|
+ $data = arrayUtil::humpUnderlineConversion($post, 1);
|
|
|
+ Yii::warning('partRefund: ' . urldecode(json_encode($data))); // 想要知道美团请求中带过来哪些参数,查看此日志输出
|
|
|
+ }
|
|
|
+
|
|
|
+ //全部退款
|
|
|
+ public function actionAllRefund()
|
|
|
+ {
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ if (empty($post)) { // 无数据过来时,是美团对接口进行存活试探,请保留此段代码,好让请求在此被中断返回
|
|
|
+ return Json::encode(['data' => 'ok']);
|
|
|
+ }
|
|
|
+ $data = arrayUtil::humpUnderlineConversion($post, 1);
|
|
|
+ Yii::warning('allRefund: ' . urldecode(json_encode($data))); // 想要知道美团请求中带过来哪些参数,查看此日志输出
|
|
|
}
|
|
|
|
|
|
//已确认订单通知
|
|
|
@@ -107,4 +124,5 @@ class MtController extends PublicController
|
|
|
// 商品类、活动类接口支持异步队列
|
|
|
$app->goods->async()->create([]);
|
|
|
}
|
|
|
+
|
|
|
}
|