|
@@ -54,11 +54,10 @@ class OpcDataController extends Controller
|
|
|
|
|
|
public function getData(Request $request)
|
|
|
{
|
|
|
- $getDataType = isset($request->system_type); // 获取需要的数据
|
|
|
- $getMineCode = isset($request->mine_code); // 矿分类
|
|
|
+ $getDataType = isset($request->system_type) ? $request->system_type : null; // 获取需要的数据
|
|
|
+ $getMineCode = isset($request->mine_code) ? $request->mine_code : null; // 矿分类
|
|
|
$dataArr = array(); // 返回数据数组
|
|
|
|
|
|
-
|
|
|
if (isset($this->localConf[$getMineCode][$getDataType])) {
|
|
|
|
|
|
$opcConnectName = 'mysql_opc_'.$getMineCode;
|