123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkAdmin
- // +----------------------------------------------------------------------
- // | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
- // +----------------------------------------------------------------------
- // | 官方网站: http://demo.thinkadmin.top
- // +----------------------------------------------------------------------
- // | 开源协议 ( https://mit-license.org )
- // +----------------------------------------------------------------------
- // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
- // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
- // +----------------------------------------------------------------------
- namespace app\test\controller;
- use think\admin\Controller;
- /**
- * 测试类
- * Class Upload
- */
- class Test extends Controller
- {
- //测试方法
- public function test(){
- /*$list = $this->app->db->name('county_list')->column('name','id');
- foreach ($list as $key=>$value){
- $school_list = $this->app->db->name('jijiao_youer_school')->field('ids,HH')->select()->toArray();
- foreach ($school_list as $k=>$v){
- if($v['HH'] == $value){
- $this->app->db->name('jijiao_youer_school')->where('ids',$v['ids'])->update(array('county_id'=>$key));
- }
- }
- }*/
- /*$list = $this->app->db->name('school2')->field('id,username,name,yw_leader_phone,zip_code')->where('id','<',4)->select()->toArray();
- foreach ($list as $key=>$value){
- $data = array(
- 'username' => $value['username'],
- 'password' => '8ddcff3a80f4189ca1c9d4d902c3c909',
- 'nickname' => $value['name'],
- 'contact_mail' => $value['zip_code'],
- 'contact_phone' => $value['yw_leader_phone'],
- 'authorize' => ',3,',
- 'school_id' => $value['id']
- );
- $this->app->db->name('system_user')->insert($data);
- }*/
- echo 12345;exit();
- }
- }
|