瀏覽代碼

新增接口

huangsanjia 1 年之前
父節點
當前提交
3963d12610
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      application/api/controller/ReportingWork.php

+ 13 - 0
application/api/controller/ReportingWork.php

@@ -401,4 +401,17 @@ class ReportingWork extends Api
         }
 
     }
+    /**
+     * 获取机台编号
+     * @ApiMethod POST
+     * @params string addr
+    */
+    public function getMachineMac(){
+        if (Request::instance()->isGet() == false){
+            $this->error('非法请求');
+        }
+        $params = Request::instance()->get();
+        $data = Db::name('设备_基本资料')->where('sys_sbID',$params['addr'])->field('设备编号')->find();
+        $this->success('请求成功',$data);
+    }
 }