|
@@ -31,6 +31,7 @@ class Content extends Core
|
|
|
$where['type'] = Dever::input('type', 1);
|
|
|
$where['buy_id'] = Dever::input('buy_id', 48);
|
|
|
$uid = Dever::input('uid');
|
|
|
+ $test = Dever::input('test');
|
|
|
if ($uid > 0) {
|
|
|
$where['uid'] = $uid;
|
|
|
}
|
|
@@ -45,6 +46,9 @@ class Content extends Core
|
|
|
$data = Dever::db('journal/order')->state($where);
|
|
|
$time = Dever::maketime('2019-01-29 14:44:30');
|
|
|
if ($data) {
|
|
|
+ if ($test == 1) {
|
|
|
+ print_r($data);die;
|
|
|
+ }
|
|
|
foreach ($data as $k => $v) {
|
|
|
if ($v['uid'] != 25371 && $v['cdate'] < $time && isset($id[$v['buy_id']]) && $id[$v['buy_id']]) {
|
|
|
$num = $id[$v['buy_id']] - 1;
|