|
|
@@ -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);
|
|
|
+ }
|
|
|
}
|