OrderController.php
583 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/6/5
* Time: 19:55
*/
namespace app\portal\controller;
use app\portal\model\OrderModel;
use cmf\controller\WeChatBaseController;
class OrderController extends WeChatBaseController
{
public function get_all(){
$user_id = cmf_get_current_user_id();
$orderModel = new OrderModel();
$where['uid'] = ['eq',$user_id];
$data = $orderModel->selectData($where);
if(!empty($data)){
foreach($data as $key => $vo){
}
}
}
}