Compare commits

...

2 Commits

Author SHA1 Message Date
366738a6c4 更新 mes_in_sct/app/action/GetBatteryProcessRoute.php
All checks were successful
Run Unit Tests / test (pull_request) Successful in 4s
2025-07-27 01:13:38 +08:00
bcbdcb4697 更新 mes_in_sct/app/action/GetBatteryProcessRoute.php
Some checks failed
Run Unit Tests / test (pull_request) Failing after 6s
2025-07-27 01:10:11 +08:00

View File

@ -10,6 +10,7 @@ class GetBatteryProcessRoute
{
public function execute($post)
{
// 验证数据
$param = check_valid($post['action'], [
['device_code', 'string', '设备编码'],
@ -124,7 +125,7 @@ class GetBatteryProcessRoute
$h = $k + 1;
if (!empty($freeze_data)) {
// 检查 status 是否为 5 和 workingsubclass为ALLPROCESS
if ($freeze_data['status'] == 5 && $freeze_data['workingsubclass'] = 'ALLPROCESS') {
if ($freeze_data['status'] == 5 && $freeze_data['workingsubclass'] == 'ALLPROCESS') {
throw new Exception("(!!!紧急冻结全工序!!!)第[{$h}]位置电池条码{$battery_id}在工序[{$ret['next_workingsubclass']}]已被标记[{$freeze_data['classname']}]冻结,需要设备排出或人工取出!!!");
// 检查 status 是否为 1
} elseif($freeze_data['status'] == 1) {