审查视图

app/portal/controller/LoadController.php 1.0 KB
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/7
 * Time: 16:48
 */

namespace app\portal\controller;


use app\portal\model\IndentModel;
use cmf\controller\HomeBaseController;

class LoadController extends HomeBaseController
{
    public function index(){
        $indentModel = new IndentModel();
        $where['state'] = ['eq',2];
        $data = $indentModel->selectData($where);
        if(!empty($data)){
            foreach($data as $key => $vo){
                $birdController = new BirdController();
                $result = $birdController->getOrder($vo['id']);
            }
        }
    }
王晓刚 authored
28
    public function test(){
王晓刚 authored
29 30

        dump(cache('param'));
王晓刚 authored
31
    }
王晓刚 authored
32
    public function notify(){
王晓刚 authored
33 34
        $param = $this->request->param();
        cache('param',$param);
王晓刚 authored
35
        $bird = config('bird');
王晓刚 authored
36
        $arr['EBusinessID'] = 'test'.$bird['EBusinessID'];
王晓刚 authored
37 38 39 40
        $arr['UpdateTime'] = date('Y-m-d H:i:s',time());
        $arr['Success'] = true;
        $arr['Reason'] = "";
        return json_encode($arr);
王晓刚 authored
41
    }
王晓刚 authored
42
}