|
|
@@ -72,7 +72,17 @@ class RefundController extends Controller
|
|
|
//退款数据更新 ./yii refund/update
|
|
|
public function actionUpdate()
|
|
|
{
|
|
|
-
|
|
|
+ ini_set('memory_limit', '2045M');
|
|
|
+ set_time_limit(0);
|
|
|
+ $query = new \yii\db\Query();
|
|
|
+ $query->from(RefundOrder::tableName());
|
|
|
+ $query->where(['ptStyle' => 2]);
|
|
|
+ foreach ($query->batch(10) as $batch) {
|
|
|
+ foreach ($batch as $refund) {
|
|
|
+ print_r($refund);
|
|
|
+ die;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|