|
@@ -39,6 +39,13 @@ class My extends Core
|
|
|
|
|
|
$this->data['level'] = 'Lv1';
|
|
$this->data['level'] = 'Lv1';
|
|
|
|
|
|
|
|
+ $this->getBindInfo();
|
|
|
|
+
|
|
|
|
+ return $this->data;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function getBindInfo()
|
|
|
|
+ {
|
|
# 获取代理商绑定信息
|
|
# 获取代理商绑定信息
|
|
$bind = Dever::db('agent/user_bind')->find(array('uid' => $this->uid));
|
|
$bind = Dever::db('agent/user_bind')->find(array('uid' => $this->uid));
|
|
if ($bind && $bind['status'] == 2 && $bind['mid']) {
|
|
if ($bind && $bind['status'] == 2 && $bind['mid']) {
|