OrderController.php 651 字节
<?php
namespace app\order\controller;
use cmf\controller\HomeBaseController;
use think\Db;

/**
 * @title 订单模块
 */
class OrderController extends HomeBaseController
{

    /**
     * @title 活动列表
     * @description 默认访问接口
     * @author sᴏᴜʟ ᴏғ ᴄɪɴᴅᴇʀ
     * @url /order/Order/confirm
     * @method POST
     */
    public function confirm()
    {
        $request = request();
        $activity_id = $request->param('activity_id');
        if ($request->isPost()) {
            $activity = Db::name('activity')->field('name')->find();
        } else {
            return $this->fetch();
        }
    }

}