123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\admin\controller;
- use app\admin\model\Admin;
- use app\admin\model\User;
- use app\common\controller\Backend;
- use app\common\model\Attachment;
- use app\common\model\Config as ConfigModel;
- use fast\Date;
- use think\Db;
- use think\Env;
- class Simulator extends Backend
- {
- /**
- * 查看
- */
- public function index()
- {
- $simNum = [];
- if(Env::get('app.is_fault')){
- $url = config('site.url_type').'/sim/sim/listAllEnable';
- $ret = json_decode(send_get($url),true);
- if($ret['code'] == 200){
- foreach ($ret['data'] as $k => $val){
- $simNum[] = [
- 'simNum'=>$val['simNum'],
- 'simType'=>$val['simType'],
- ];
- }
- }
- }
- $this->assign('simNum', $simNum);
- $this->assignConfig('url_type', config('site.url_type'));
- return $this->view->fetch();
- }
- }
|