|
@@ -1508,15 +1508,27 @@ class Order
|
|
|
|
|
|
$parent = Dever::db('agent/member')->find(array('id'=>$v['parent_mid']));
|
|
|
$parent_rolename = '';
|
|
|
- if($parent && $parent['role']){
|
|
|
- $parent_role = Dever::db('setting/role')->find(array('id'=>$parent['role']));
|
|
|
- if($parent_role && $parent_rolename){
|
|
|
- $parent_rolename = $parent_role['name'];
|
|
|
+ $parent_name = '';
|
|
|
+ $parent_mobile = '';
|
|
|
+ $parent_area = '';
|
|
|
+ if($parent){
|
|
|
+ if($parent['role']){
|
|
|
+ $parent_role = Dever::db('setting/role')->find(array('id'=>$parent['role']));
|
|
|
+ if($parent_role && $parent_rolename){
|
|
|
+ $parent_rolename = $parent_role['name'];
|
|
|
+ }
|
|
|
}
|
|
|
if($prent['area']){
|
|
|
$parent_area = Dever::load("area/api.string", $parent['area']);
|
|
|
}
|
|
|
+ if($parent['name']){
|
|
|
+ $parent_name = $parent['name'];
|
|
|
+ }
|
|
|
+ if($parent['mobile']){
|
|
|
+ $parent_mobile = $parent['mobile'];
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
$process = Dever::db('agent/order_process')->state(array('order_id'=>$v['id']));
|
|
|
$chu = '';
|
|
|
$zhong = '';
|
|
@@ -1607,8 +1619,8 @@ class Order
|
|
|
$audit_cdate,
|
|
|
$bh,
|
|
|
$v['admin_desc'],
|
|
|
- $parent['name'],
|
|
|
- $parent['mobile'],
|
|
|
+ $parent_name,
|
|
|
+ $parent_mobile,
|
|
|
$parent_rolename,
|
|
|
$parent_area,
|
|
|
);
|