Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -8,7 +8,7 @@ class Basicinfo extends Common | @@ -8,7 +8,7 @@ class Basicinfo extends Common | ||
| 8 | //打印机型号列表 | 8 | //打印机型号列表 |
| 9 | public function Printer($sys_id=1){ | 9 | public function Printer($sys_id=1){ |
| 10 | if(Request::isAjax()) { | 10 | if(Request::isAjax()) { |
| 11 | - $list= file_get_contents(UNDER_LINE.'App.Prints.QueryPrintsList'); | 11 | + $list= file_get_contents(ON_LINE.'App.Prints.QueryPrintsList'); |
| 12 | $array = json_decode($list,TRUE); | 12 | $array = json_decode($list,TRUE); |
| 13 | return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1]; | 13 | return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1]; |
| 14 | } | 14 | } |
| @@ -19,7 +19,7 @@ class Basicinfo extends Common | @@ -19,7 +19,7 @@ class Basicinfo extends Common | ||
| 19 | public function printerAdd(){ | 19 | public function printerAdd(){ |
| 20 | if(Request::isAjax()){ | 20 | if(Request::isAjax()){ |
| 21 | $data = input('post.'); | 21 | $data = input('post.'); |
| 22 | - $list= file_get_contents(UNDER_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname']); | 22 | + $list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname']); |
| 23 | $array = json_decode($list,TRUE); | 23 | $array = json_decode($list,TRUE); |
| 24 | //添加 | 24 | //添加 |
| 25 | if ($array['ret']==200) { | 25 | if ($array['ret']==200) { |
| @@ -37,7 +37,7 @@ class Basicinfo extends Common | @@ -37,7 +37,7 @@ class Basicinfo extends Common | ||
| 37 | public function printerEdit(){ | 37 | public function printerEdit(){ |
| 38 | if(request()->isPost()){ | 38 | if(request()->isPost()){ |
| 39 | $data = input('post.'); | 39 | $data = input('post.'); |
| 40 | - $list= file_get_contents(UNDER_LINE.'App.Prints.editPrintsInfo&data='.json_encode($data)); | 40 | + $list= file_get_contents(ON_LINE.'App.Prints.editPrintsInfo&data='.json_encode($data)); |
| 41 | $array = json_decode($list,TRUE); | 41 | $array = json_decode($list,TRUE); |
| 42 | if($array['ret']==200){ | 42 | if($array['ret']==200){ |
| 43 | return ['code'=>1,'msg'=>'修改成功!','url'=>url('Printer')]; | 43 | return ['code'=>1,'msg'=>'修改成功!','url'=>url('Printer')]; |
| @@ -46,7 +46,7 @@ class Basicinfo extends Common | @@ -46,7 +46,7 @@ class Basicinfo extends Common | ||
| 46 | } | 46 | } |
| 47 | }else{ | 47 | }else{ |
| 48 | //根据ID获取打印型号信息 | 48 | //根据ID获取打印型号信息 |
| 49 | - $list= file_get_contents(UNDER_LINE.'App.Prints.queryPrintsFetch&id='.input('id')); | 49 | + $list= file_get_contents(ON_LINE.'App.Prints.queryPrintsFetch&id='.input('id')); |
| 50 | $array = json_decode($list,TRUE); | 50 | $array = json_decode($list,TRUE); |
| 51 | $array['data']['modelname'] = $array['data']['name']; | 51 | $array['data']['modelname'] = $array['data']['name']; |
| 52 | $this->assign('info', json_encode($array['data'],true)); | 52 | $this->assign('info', json_encode($array['data'],true)); |
-
Please register or login to post a comment