...
|
...
|
@@ -625,12 +625,11 @@ class Index extends Api |
|
|
$Arr = Db::name('stor')->select();
|
|
|
$Code = input('battery_code');
|
|
|
$battery_code = explode('-', $Code);
|
|
|
$map['BatteryCode'] = ['LIKE', '%' . $battery_code[1] . '%'];
|
|
|
if (empty($Code) || $Code == '' || $Code == "" || $Code == null) {
|
|
|
$this->error('请先链接蓝牙', 0);
|
|
|
die;
|
|
|
}
|
|
|
$map['BatteryCode'] = ['LIKE', '%' . $Code . '%'];
|
|
|
$map['BatteryCode'] = ['LIKE', '%' . $battery_code[1] . '%'];
|
|
|
//用户电池分类ID
|
|
|
$Id = Db::name('battery_code')->where($map)->value('id');
|
|
|
if (empty($Id)) {
|
...
|
...
|
|