Commit c4b6ed05 authored by 冯超鹏's avatar 冯超鹏

no message

parent e1c3b4e7
Pipeline #248 canceled with stages
...@@ -115,7 +115,7 @@ class ZehongTcpController extends Controller ...@@ -115,7 +115,7 @@ class ZehongTcpController extends Controller
public function smsphone($data) public function smsphone($data)
{ {
if (Redis::get($data['id']) == '') { if (Redis::get($data['id']) == '') {
if ($data['status'] != 1 || $data['status'] != 0) { if ($data['status'] > 1) {
$sms = new SmsailiyunController(); $sms = new SmsailiyunController();
$code1 = json_encode($sms->sendSms()); $code1 = json_encode($sms->sendSms());
$code = json_decode($code1,true); $code = json_decode($code1,true);
...@@ -127,6 +127,7 @@ class ZehongTcpController extends Controller ...@@ -127,6 +127,7 @@ class ZehongTcpController extends Controller
} }
} else { } else {
if ($data['status'] == 1 || $data['status'] == 0) { if ($data['status'] == 1 || $data['status'] == 0) {
Log::channel('slack')->info('设备正常 =>' . '' . '设备号=>' . $data['id']);
Redis::del($data['id']); Redis::del($data['id']);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment