|
|
@@ -23,19 +23,6 @@ use yii\console\Controller;
|
|
|
class TestController extends Controller
|
|
|
{
|
|
|
|
|
|
- public function actionUpdateBelong()
|
|
|
- {
|
|
|
- ini_set('memory_limit', '2045M');
|
|
|
- set_time_limit(0);
|
|
|
- $list = ProductClass::getAllByCondition(['belongCost' => 1], null, '*', null, true);
|
|
|
- if (!empty($list)) {
|
|
|
- foreach ($list as $item) {
|
|
|
- $productId = $item->id ?? 0;
|
|
|
- OrderItemClass::updateByCondition(['productId' => $productId], ['belongCost' => 1]);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public function actionDeadline()
|
|
|
{
|
|
|
ini_set('memory_limit', '2045M');
|