fix bug nhỏ
This commit is contained in:
@@ -282,7 +282,11 @@ class DeviceController extends Controller {
|
||||
public function actionSearch() {
|
||||
if (Yii::$app->request->post()) {
|
||||
Yii::$app->response->format = "json";
|
||||
$datas = json_decode(common::requestToCardService("/SearchDevice", ["NetMask" => Yii::$app->request->post("SubnetMask")]), true);
|
||||
$NetMask = "255.255.255.255";
|
||||
if (Yii::$app->request->post("SubnetMask") != "") {
|
||||
$NetMask = Yii::$app->request->post("SubnetMask");
|
||||
}
|
||||
$datas = json_decode(common::requestToCardService("/SearchDevice", ["NetMask" => $NetMask]), true);
|
||||
return [
|
||||
"form" => $this->renderPartial("device-lists", [
|
||||
"datas" => $datas,
|
||||
|
||||
Reference in New Issue
Block a user