/**
  *
  */
 public function index()
 {
     //        $Redis=new RedisModel();
     //        $data=array(
     //            "str1"=>"ceiba", //一个key,对应一个值
     //            "str2"=>"李开湧",
     //            "str3"=>"李明",
     //        );
     //            $data = array("a1"=>"a");
     //        RedisHelper::set("member",$data);
     //        echo print_r(RedisHelper::get("member"));
     //        echo Message::密码错误;
     $user = D('user');
     /** @var UserModel $u */
     $u = D('user');
     $u->UserID = String::uuidKey();
     $u->UserName = "******";
     $u->CreateTime = new Date();
     $u->Mobile = "String::uuid()";
     $u->Email = "String::uuid()";
     $u->LastLoginTime = new Date();
     $u->WX_NickName = "String::uuid()";
     $u->WX_CloselyTime = (new Date())->format();
     $u->WX_HeadImage = "String::uuid()";
     $u->POINT = 10;
     $u->LastIP = "String::uuid()";
     $u->data($u);
     $d['username'] = array('like', '%d%');
     //        $item = $u->where("UserName like '%d%'")->setLazyInc();
     //        $item = $u->Login("sss","ddd");
     $item1 = $u->getList("tt", 1, 1);
     session("aaa", "1111");
     dump(session("aaa"));
     //        print_r($u->add());
     //        echo Date::Now();
     return;
     if (empty($_SESSION['aid'])) {
         $this->display('login');
         exit;
     }
     //角色id
     $roleid = M('admin')->where(array('id' => $_SESSION['aid']))->find();
     $menu = new AdminController();
     if ($roleid['r_id']) {
         $this->assign('men', $menu->getMenusRole($roleid['r_id']));
     }
     /*如有权限待审批的个数*/
     $count1 = M('shop_withdraw')->where('withdraw_status=0')->count();
     $count2 = M('shop_withdraw')->where('withdraw_status=2')->count();
     $this->assign('ip', get_client_ip());
     $this->assign('count1', $count1);
     $this->assign('Withdraw', $menu->Withdraw);
     $this->assign('Deposit', $menu->Deposit);
     $this->assign('count2', $count2);
     $this->assign('lasttime', date('Y-m-d H:i:s', $roleid['lasttime']));
     $this->display();
 }