|
@@ -0,0 +1,35 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace app\api\controller\mall;
|
|
|
+
|
|
|
+use app\common\controller\Api;
|
|
|
+use app\common\model\OrderInfo;
|
|
|
+use app\common\model\OrderVoucher;
|
|
|
+use app\common\model\Refund;
|
|
|
+use app\common\service\OrderService;
|
|
|
+use fast\Arr;
|
|
|
+use think\Db;
|
|
|
+use app\common\model\Orders as Order;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 订单退款
|
|
|
+ * @inheritdoc
|
|
|
+ */
|
|
|
+class OrderRefund extends Api
|
|
|
+{
|
|
|
+ protected $noNeedRight = "*";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 退款退货配置
|
|
|
+ * @ApiMethod (POST)
|
|
|
+ * @ApiReturnParams (name=reason,description=)
|
|
|
+ */
|
|
|
+ public function config()
|
|
|
+ {
|
|
|
+ $info=[
|
|
|
+ 'reason'=>array_values(Refund::getReasons()),
|
|
|
+ 'type'=>1
|
|
|
+ ];
|
|
|
+ $this->success('', $info);
|
|
|
+ }
|
|
|
+}
|