|
@@ -207,8 +207,10 @@ class Manage
|
|
|
if (!$area) {
|
|
|
$area_data['type'] = $order['get_type'];
|
|
|
$area_data['price'] = $order['price'];
|
|
|
+ $area_data['status'] = 1;
|
|
|
Dever::db('agent/member_area')->insert($area_data);
|
|
|
} else {
|
|
|
+ Dever::db('agent/member_area')->update(array('where_id' => $area['id'], 'state' => 2));
|
|
|
if ($role && $role['type'] == 2) {
|
|
|
Dever::load('area/api')->upStatus($area['area'], 1);
|
|
|
}
|