|
@@ -17,18 +17,29 @@ class Manage
|
|
|
|
|
|
if ($info['type'] < 10) {
|
|
if ($info['type'] < 10) {
|
|
$table = Dever::config('base')->type_table[$info['type']];
|
|
$table = Dever::config('base')->type_table[$info['type']];
|
|
|
|
+ $audit = array
|
|
|
|
+ (
|
|
|
|
+ //'audit' => 2,
|
|
|
|
+ //'status' => 2,
|
|
|
|
+ 'state' => 1,
|
|
|
|
+ );
|
|
if ($info['type'] == 1) {
|
|
if ($info['type'] == 1) {
|
|
- $data = Dever::db($table)->one($info['article_id']);
|
|
|
|
|
|
+ $audit['id'] = $info['article_id'];
|
|
|
|
+ $data = Dever::db($table)->one($audit);
|
|
} elseif ($info['type'] == 2) {
|
|
} elseif ($info['type'] == 2) {
|
|
- $data = Dever::db($table)->one($info['vod_id']);
|
|
|
|
|
|
+ $audit['id'] = $info['vod_id'];
|
|
|
|
+ $data = Dever::db($table)->one($audit);
|
|
} elseif ($info['type'] == 3) {
|
|
} elseif ($info['type'] == 3) {
|
|
- $data = Dever::db($table)->one($info['live_id']);
|
|
|
|
|
|
+ $audit['id'] = $info['live_id'];
|
|
|
|
+ $data = Dever::db($table)->one($audit);
|
|
} elseif ($info['type'] == 4) {
|
|
} elseif ($info['type'] == 4) {
|
|
- $data = Dever::db($table)->one($info['journal_id']);
|
|
|
|
|
|
+ $audit['id'] = $info['journal_id'];
|
|
|
|
+ $data = Dever::db($table)->one($audit);
|
|
} elseif ($info['type'] == 6) {
|
|
} elseif ($info['type'] == 6) {
|
|
- $data = Dever::db($table)->one($info['feature_id']);
|
|
|
|
|
|
+ $audit['id'] = $info['feature_id'];
|
|
|
|
+ $data = Dever::db($table)->one($audit);
|
|
} elseif ($info['type'] == 7) {
|
|
} elseif ($info['type'] == 7) {
|
|
- $data = Dever::db($table)->one($info['applet_id']);
|
|
|
|
|
|
+ $data = Dever::db($table)->one(array('state' => 1, 'id' => $info['applet_id']));
|
|
}
|
|
}
|
|
|
|
|
|
if (isset($data) && $data && isset($data['name'])) {
|
|
if (isset($data) && $data && isset($data['name'])) {
|