1234567891011121314151617181920212223242526272829303132333435 |
- <?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);
- }
- }
|