1
0

first commit

This commit is contained in:
2020-08-06 14:58:51 +08:00
commit 17096657dc
780 changed files with 92857 additions and 0 deletions

View 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();
}
}