|
@@ -1111,8 +1111,8 @@ class Api extends CatchController
|
|
|
$info['status'] = 1;
|
|
|
|
|
|
// 临时功能代码
|
|
|
- $labels = []; //测试设备
|
|
|
- if (in_array($info['id'], $labels)) {
|
|
|
+ $labels = ['0200C1D1', '0200C1D2']; //测试设备
|
|
|
+ if (in_array(strtoupper($info['id']), $labels)) {
|
|
|
# code...
|
|
|
//card_black
|
|
|
$where = [];
|
|
@@ -1120,7 +1120,7 @@ class Api extends CatchController
|
|
|
$where[] = ['field', '=','card_black'];
|
|
|
$bkList = Db::name('sys_config')->where($where)->find();
|
|
|
$bkList = explode(',', $bkList['fieldValue']);
|
|
|
- if (in_array($info['id'], $labels)) {
|
|
|
+ if (in_array(strtoupper($info['id']), $bkList)) {
|
|
|
# code...
|
|
|
$info['status'] = 3;
|
|
|
}
|