@@ -946,5 +946,19 @@ return array
'type' => 'all',
'col' => '*',
),
+
+ 'getOne' => array
+ (
+ # 匹配的正则或函数 选填项
+ 'option' => array
+ 'role' => 'yes',
+ 'area' => 'yes',
+ 'status' => 2,
+ 'state' => 1,
+ ),
+ 'type' => 'one',
+ 'col' => '*',
);
@@ -311,6 +311,9 @@ class My extends Core
$this->data = Dever::load('agent/lib/order')->getPrice();
$this->data['area_string'] = Dever::load("area/api.string", $where['area'], ' / ');
$info = Dever::db('agent/member_area')->getOne($where);
+ if (!$info) {
+ $info = Dever::db('agent/member')->getOne($where);
+ }
# 1已被代理 2未被代理
if ($info) {