first commit
This commit is contained in:
47
application/mobile/controller/Index.php
Normal file
47
application/mobile/controller/Index.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// +------------------------------------------------+
|
||||
// |http://www.cjango.com |
|
||||
// +------------------------------------------------+
|
||||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||||
// +------------------------------------------------+
|
||||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||||
// +------------------------------------------------+
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use app\common\model\MemberInfo;
|
||||
|
||||
class Index extends _Init
|
||||
{
|
||||
|
||||
public function _initialize()
|
||||
{
|
||||
parent::_initialize();
|
||||
$this->nav = 1;
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
if (UID || $this->shareUser) {
|
||||
if ($this->shareUser) {
|
||||
$this->info = $this->shareUser;
|
||||
} else {
|
||||
$this->info = MemberInfo::get(UID);
|
||||
}
|
||||
|
||||
return $this->fetch('user_' . $this->info['index_tpl']);
|
||||
} else {
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
public function info()
|
||||
{
|
||||
if (UID == $this->shareUser['uid']) {
|
||||
$this->info = MemberInfo::get(UID);
|
||||
} else {
|
||||
$this->info = $this->shareUser;
|
||||
}
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user