|
@@ -86,17 +86,33 @@ class Act
|
|
|
foreach ($data as $k => $v) {
|
|
|
$info = $this->getTypeInfo($v['type'], $v['type_id']);
|
|
|
if ($info) {
|
|
|
- $info['data_id'] = $v['id'];
|
|
|
- $info['cdate'] = $v['cdate'];
|
|
|
- $info['cdate_str'] = date('Y-m-d H:i:s', $info['cdate']);
|
|
|
+ $info['status_name'] = $this->db->value('status', $v['status']);
|
|
|
+ $info['type'] = $v['type'];
|
|
|
+ $info['type_id'] = $v['id'];
|
|
|
+ //$info['cdate'] = $v['cdate'];
|
|
|
+ $info['cdate_str'] = date('Y-m-d H:i:s', $v['cdate']);
|
|
|
if ($field) {
|
|
|
foreach ($field as $v1) {
|
|
|
$info[$v1] = $v[$v1];
|
|
|
}
|
|
|
}
|
|
|
- if ($v['type'] == 3) {
|
|
|
- $info['detail'] = Dever::load('order', 'goods')->getDetail($v['id']);
|
|
|
+ if (strstr($this->db->config['load'], 'order')) {
|
|
|
+ if ($v['type'] == 3) {
|
|
|
+ $info['detail'] = Dever::load('order', 'goods')->getDetail($v['id']);
|
|
|
+ $info['info'] = '共' . intval($info['num']) . '件商品';
|
|
|
+ } else {
|
|
|
+ $detail['id'] = $info['id'];
|
|
|
+ $detail['name'] = $info['name'];
|
|
|
+ $detail['pic'] = $info['pic'];
|
|
|
+ $detail['sku_name'] = '';
|
|
|
+ $detail['sku_id'] = 0;
|
|
|
+ $detail['cash'] = $info['cash'];
|
|
|
+ $detail['num'] = $info['num'];
|
|
|
+ $info['detail'][] = $detail;
|
|
|
+ $info['info'] = '';
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
$result[] = $info;
|
|
|
}
|
|
|
}
|