|
@@ -36,7 +36,7 @@ class commandControl extends BaseCronControl
|
|
|
public function refund0928BonusOp()
|
|
|
{
|
|
|
$items = Model()->query('SELECT * FROM lrlz_order WHERE pd_amount=0 AND LENGTH(bonus_rate) > 0 AND add_time > UNIX_TIMESTAMP(DATE (\'2016-09-28 00:00:00\')) AND order_state = 0');
|
|
|
- if(empty($item)) return;
|
|
|
+ if(empty($items)) return;
|
|
|
foreach ($items as $item) {
|
|
|
$order_sn = $item['order_sn'];
|
|
|
$member_id = intval($item['buyer_id']);
|