LoadController.php
1.1 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?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']);
}
}
}
public function test(){
dump(cache('param'));
}
public function notify(){
$param = $this->request->param();
if(empty($param['RequestType'])){
$this->error('error');
}
if($param['RequestType'] != )
cache('param',$param);
$bird = config('bird');
$arr['EBusinessID'] = 'test'.$bird['EBusinessID'];
$arr['UpdateTime'] = date('Y-m-d H:i:s',time());
$arr['Success'] = true;
$arr['Reason'] = "";
return json_encode($arr);
}
}