|
...
|
...
|
@@ -11,6 +11,10 @@ class Basicinfo extends Common |
|
|
|
$list= file_get_contents(ON_LINE.'App.Prints.QueryPrintsList');
|
|
|
|
$array = json_decode($list,TRUE);
|
|
|
|
foreach ($array['data'] as $key => $value) {
|
|
|
|
if($value['type']==1)
|
|
|
|
$array['data'][$key]['type'] = '50';
|
|
|
|
elseif($value['type']==2)
|
|
|
|
$array['data'][$key]['type'] = '80';
|
|
|
|
$array['data'][$key]['cdate'] = date('Y-m-d H:i:s',$value['cdate']);
|
|
|
|
}
|
|
|
|
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];
|
|
...
|
...
|
@@ -22,7 +26,7 @@ class Basicinfo extends Common |
|
|
|
public function printerAdd(){
|
|
|
|
if(Request::isAjax()){
|
|
|
|
$data = input('post.');
|
|
|
|
$list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname']);
|
|
|
|
$list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname'].'&type='.$data['type']);
|
|
|
|
$array = json_decode($list,TRUE);
|
|
|
|
//添加
|
|
|
|
if ($array['ret']==200) {
|
...
|
...
|
|