正在显示
1 个修改的文件
包含
2 行增加
和
6 行删除
| @@ -194,19 +194,15 @@ class ExtensionModuleController extends BaseController | @@ -194,19 +194,15 @@ class ExtensionModuleController extends BaseController | ||
| 194 | }else{ | 194 | }else{ |
| 195 | if($this->user['project_id'] == 2205 && $this->param['module_id'] == 1){ | 195 | if($this->user['project_id'] == 2205 && $this->param['module_id'] == 1){ |
| 196 | if($v['field_id'] == 12 && (!empty($v['value']) && !empty($info['value']))){//下拉框数据 | 196 | if($v['field_id'] == 12 && (!empty($v['value']) && !empty($info['value']))){//下拉框数据 |
| 197 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND); | ||
| 198 | $filedModel = new ExtensionModuleField(); | 197 | $filedModel = new ExtensionModuleField(); |
| 199 | $fileInfo = $filedModel->read(['id'=>12]);//获取当前下拉框的数据 | 198 | $fileInfo = $filedModel->read(['id'=>12]);//获取当前下拉框的数据 |
| 200 | $statusData = json_decode($fileInfo['data'],true); | 199 | $statusData = json_decode($fileInfo['data'],true); |
| 201 | $status_data = []; | 200 | $status_data = []; |
| 202 | $number = 1; | 201 | $number = 1; |
| 203 | - foreach ($statusData as $v){ | ||
| 204 | - $status_data[$v] = $number; | 202 | + foreach ($statusData as $value){ |
| 203 | + $status_data[$value] = $number; | ||
| 205 | $number++; | 204 | $number++; |
| 206 | } | 205 | } |
| 207 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($status_data, true) . PHP_EOL, FILE_APPEND); | ||
| 208 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($info['value'], true) . PHP_EOL, FILE_APPEND); | ||
| 209 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v['value'], true) . PHP_EOL, FILE_APPEND); | ||
| 210 | if($status_data[$info['value']] > $status_data[$v['value']]){ | 206 | if($status_data[$info['value']] > $status_data[$v['value']]){ |
| 211 | $this->fail('流程控制只能往下选择'); | 207 | $this->fail('流程控制只能往下选择'); |
| 212 | } | 208 | } |
-
请 注册 或 登录 后发表评论