36 lines
913 B
PHP
36 lines
913 B
PHP
<?php
|
||
// +------------------------------------------------+
|
||
// |http://www.cjango.com |
|
||
// +------------------------------------------------+
|
||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||
// +------------------------------------------------+
|
||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||
// +------------------------------------------------+
|
||
namespace app\mobile\controller;
|
||
|
||
use app\common\model\MemberInfo as MemberInfoModel;
|
||
|
||
class Mycard extends _Init
|
||
{
|
||
public function _initialize()
|
||
{
|
||
parent::_initialize();
|
||
$this->nav = 5;
|
||
}
|
||
|
||
public function index()
|
||
{
|
||
$this->mycard = MemberInfoModel::where('uid',UID)->find();
|
||
|
||
return $this->fetch();
|
||
}
|
||
|
||
public function edit()
|
||
{
|
||
$this->mycard = MemberInfoModel::where('uid',UID)->find();
|
||
|
||
return $this->fetch('add');
|
||
}
|
||
|
||
}
|