|
@@ 400-404 (lines=5) @@
|
| 397 |
|
$que_type = que_get_unit_que($unit_id); |
| 398 |
|
$planet_id_origin = $planet['id'] ? $planet['id'] : 'NULL'; |
| 399 |
|
$planet_id = $que_type == QUE_RESEARCH ? 'NULL' : $planet_id_origin; |
| 400 |
|
if(is_numeric($planet_id)) { |
| 401 |
|
DBStaticPlanet::db_planet_update_set_by_id($planet_id, "`que_processed` = UNIX_TIMESTAMP(NOW())"); |
| 402 |
|
} elseif(is_numeric($user['id'])) { |
| 403 |
|
DBStaticUser::db_user_set_by_id($user['id'], '`que_processed` = UNIX_TIMESTAMP(NOW())'); |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
$resource_list = sys_unit_arr2str($build_data[$build_mode]); |
| 407 |
|
|
|
@@ 463-467 (lines=5) @@
|
| 460 |
|
} |
| 461 |
|
} |
| 462 |
|
|
| 463 |
|
if(is_numeric($planet['id'])) { |
| 464 |
|
DBStaticPlanet::db_planet_update_set_by_id($planet['id'], "`que_processed` = UNIX_TIMESTAMP(NOW())"); |
| 465 |
|
} elseif(is_numeric($user['id'])) { |
| 466 |
|
DBStaticUser::db_user_set_by_id($user['id'], '`que_processed` = UNIX_TIMESTAMP(NOW())'); |
| 467 |
|
} |
| 468 |
|
|
| 469 |
|
sn_db_transaction_commit(); |
| 470 |
|
} else { |