feat: init project codebase

This commit is contained in:
sinde21
2026-09-14 16:32:07 +08:00
parent c4b2a15757
commit da20fde7fb
140 changed files with 27855 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @author luoxuancai 2017/7/13
*/
class Report extends CI_Controller {
public function __construct()
{
parent::__construct();
//$this->load->model('Model_UsersInfo');
$this->load->model('report_model');
}
//新报告检测
public function index()
{
//未完成的检测
$list = $this->Model_UsersInfo->get_uncompleted_list();
//扫描目录
foreach ($list as $userInfo) {
//print_r($this->report_model->get_report_file($userInfo['device_id']));die;
if($this->report_model->is_report_ready($userInfo['device_id'])){
//设置完成
$this->Model_UsersInfo->set_completed($userInfo['id']);
//发送微信通知
}
}
}
//快递
public function ship()
{
die('dfdfd');
//未完成的检测
$list = $this->Model_UsersInfo->get_uncompleted_list();
//扫描目录
foreach ($list as $userInfo) {
//print_r($this->report_model->get_report_file($userInfo['device_id']));die;
if($this->report_model->is_report_ready($userInfo['device_id'])){
//设置完成
$this->Model_UsersInfo->set_completed($userInfo['id']);
//发送微信通知
}
}
}
//快递
public function test()
{
die('dfdfd');
}
}