|
@@ -11,6 +11,10 @@ class Basicinfo extends Common |
|
@@ -11,6 +11,10 @@ class Basicinfo extends Common |
|
11
|
$list= file_get_contents(ON_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
|
foreach ($array['data'] as $key => $value) {
|
13
|
foreach ($array['data'] as $key => $value) {
|
|
|
|
14
|
+ if($value['type']==1)
|
|
|
|
15
|
+ $array['data'][$key]['type'] = '50';
|
|
|
|
16
|
+ elseif($value['type']==2)
|
|
|
|
17
|
+ $array['data'][$key]['type'] = '80';
|
|
14
|
$array['data'][$key]['cdate'] = date('Y-m-d H:i:s',$value['cdate']);
|
18
|
$array['data'][$key]['cdate'] = date('Y-m-d H:i:s',$value['cdate']);
|
|
15
|
}
|
19
|
}
|
|
16
|
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];
|
20
|
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];
|
|
@@ -22,7 +26,7 @@ class Basicinfo extends Common |
|
@@ -22,7 +26,7 @@ class Basicinfo extends Common |
|
22
|
public function printerAdd(){
|
26
|
public function printerAdd(){
|
|
23
|
if(Request::isAjax()){
|
27
|
if(Request::isAjax()){
|
|
24
|
$data = input('post.');
|
28
|
$data = input('post.');
|
|
25
|
- $list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname']);
|
29
|
+ $list= file_get_contents(ON_LINE.'App.Prints.addPrintsInfo&name='.$data['modelname'].'&type='.$data['type']);
|
|
26
|
$array = json_decode($list,TRUE);
|
30
|
$array = json_decode($list,TRUE);
|
|
27
|
//添加
|
31
|
//添加
|
|
28
|
if ($array['ret']==200) {
|
32
|
if ($array['ret']==200) {
|