Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
0dd91d6c
Commit
0dd91d6c
authored
Jan 10, 2017
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格兰仕 - look系列接口默认显示500条
parent
af49e67a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
29 deletions
+61
-29
Galanz.php
application/controllers/test/Galanz.php
+4
-3
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+43
-23
galanz.md
docs/galanz.md
+14
-3
No files found.
application/controllers/test/Galanz.php
View file @
0dd91d6c
...
@@ -43,9 +43,10 @@ class Galanz extends BaseController
...
@@ -43,9 +43,10 @@ class Galanz extends BaseController
9
=>
[
'u'
=>
'W75509335'
,
'p'
=>
'szwxh!755'
],
9
=>
[
'u'
=>
'W75509335'
,
'p'
=>
'szwxh!755'
],
10
=>
[
'u'
=>
'W02029017'
,
'p'
=>
'weixiuhui09'
],
10
=>
[
'u'
=>
'W02029017'
,
'p'
=>
'weixiuhui09'
],
11
=>
[
'u'
=>
'R75500046'
,
'p'
=>
'szwxh!755'
],
11
=>
[
'u'
=>
'R75500046'
,
'p'
=>
'szwxh!755'
],
12
=>
[
'u'
=>
'K75580035'
,
'p'
=>
'dgqh!769'
],
];
];
$key
=
0
;
$key
=
12
;
self
::
$testu
=
$account
[
$key
][
'u'
];
self
::
$testu
=
$account
[
$key
][
'u'
];
self
::
$testp
=
$account
[
$key
][
'p'
];
self
::
$testp
=
$account
[
$key
][
'p'
];
//self::$testp = urlencode(str_aes($account[5]['p']));
//self::$testp = urlencode(str_aes($account[5]['p']));
...
@@ -234,7 +235,7 @@ class Galanz extends BaseController
...
@@ -234,7 +235,7 @@ class Galanz extends BaseController
$data
[
'appid'
]
=
'10001'
;
$data
[
'appid'
]
=
'10001'
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'id'
]
=
'
6f554192-9356-4dad-8bc1-edfa223c9943
'
;
$data
[
'id'
]
=
'
0d43c6b4-59c5-4809-9dab-17addb37ff76
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
$obj
->
SetValues
(
$data
);
...
@@ -497,7 +498,7 @@ class Galanz extends BaseController
...
@@ -497,7 +498,7 @@ class Galanz extends BaseController
$data
[
'appid'
]
=
'10001'
;
$data
[
'appid'
]
=
'10001'
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'workorderproductid'
]
=
'5
ad37132-da70-452a-a91a-119bfff70b28
'
;
$data
[
'workorderproductid'
]
=
'5
ed6863a-10f1-4409-8e06-d7c60ef0b3dc
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
$obj
->
SetValues
(
$data
);
...
...
application/libraries/Source/SourceGalanz.php
View file @
0dd91d6c
...
@@ -1194,29 +1194,49 @@ class SourceGalanz extends Source
...
@@ -1194,29 +1194,49 @@ class SourceGalanz extends Source
$url
=
self
::
$host
.
"/Common/lookupSingle.aspx?lookupname=
{
$key
}
¶m=
{
$val
}
"
;
$url
=
self
::
$host
.
"/Common/lookupSingle.aspx?lookupname=
{
$key
}
¶m=
{
$val
}
"
;
$result
=
$this
->
GetUrlContents
(
$url
);
$result
=
$this
->
GetUrlContents
(
$url
);
if
(
$search
)
{
// if ($search) {
$post
=
[
// $post = [
'__EVENTTARGET'
=>
'btnSearch'
,
// '__EVENTTARGET' => 'btnSearch',
'__EVENTARGUMENT'
=>
''
,
// '__EVENTARGUMENT' => '',
'__LASTFOCUS'
=>
''
,
// '__LASTFOCUS' => '',
'__VIEWSTATE'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'__VIEWSTATE'
,
'text'
),
'text'
),
// '__VIEWSTATE' => $this->OrderFormValue($result, $this->OrderFormReg('__VIEWSTATE', 'text'), 'text'),
'hidIdIndex'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'hidIdIndex'
,
'text'
),
'text'
),
// 'hidIdIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidIdIndex', 'text'), 'text'),
'hidNameIndex'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'hidNameIndex'
,
'text'
),
'text'
),
// 'hidNameIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidNameIndex', 'text'), 'text'),
'hidEntityName'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'hidEntityName'
,
'text'
),
'text'
),
// 'hidEntityName' => $this->OrderFormValue($result, $this->OrderFormReg('hidEntityName', 'text'), 'text'),
'ddlFieldList'
=>
$type
,
//$this->OrderFormValue($result, $this->OrderFormReg('ddlFieldList', 'select'), 'select'),
// 'ddlFieldList' => $type,//$this->OrderFormValue($result, $this->OrderFormReg('ddlFieldList', 'select'), 'select'),
'txtValue'
=>
$search
,
// 'txtValue' => $search,
'PagerToolBar1$ctl00'
=>
'50'
,
// 'PagerToolBar1$ctl00' => '150',
'PagerToolBar1$ctl05'
=>
'1'
,
// 'PagerToolBar1$ctl05' => '1',
];
// ];
//
$headers
=
$this
->
Header
(
$url
);
// $headers = $this->Header($url);
$result
=
$this
->
CurlPost
(
$url
,
$post
,
$headers
);
// $result = $this->CurlPost($url, $post, $headers);
$result
=
gzdecode
(
$result
[
'data'
]);
// $result = gzdecode($result['data']);
//
return
$this
->
LookupSingleFields
(
$result
,
$key
,
'td'
);
// return $this->LookupSingleFields($result, $key, 'td');
}
else
{
// } else {
return
$this
->
LookupSingleFields
(
$result
,
$key
);
// return $this->LookupSingleFields($result, $key);
}
// }
$post
=
[
'__EVENTTARGET'
=>
'btnSearch'
,
'__EVENTARGUMENT'
=>
''
,
'__LASTFOCUS'
=>
''
,
'__VIEWSTATE'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'__VIEWSTATE'
,
'text'
),
'text'
),
'hidIdIndex'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'hidIdIndex'
,
'text'
),
'text'
),
'hidNameIndex'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'hidNameIndex'
,
'text'
),
'text'
),
'hidEntityName'
=>
$this
->
OrderFormValue
(
$result
,
$this
->
OrderFormReg
(
'hidEntityName'
,
'text'
),
'text'
),
'ddlFieldList'
=>
$type
,
//$this->OrderFormValue($result, $this->OrderFormReg('ddlFieldList', 'select'), 'select'),
'txtValue'
=>
$search
,
'PagerToolBar1$ctl00'
=>
'500'
,
'PagerToolBar1$ctl05'
=>
'1'
,
];
$headers
=
$this
->
Header
(
$url
);
$result
=
$this
->
CurlPost
(
$url
,
$post
,
$headers
);
$result
=
gzdecode
(
$result
[
'data'
]);
return
$this
->
LookupSingleFields
(
$result
,
$key
,
'td'
);
}
}
/**
/**
...
...
docs/galanz.md
View file @
0dd91d6c
...
@@ -559,9 +559,20 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修
...
@@ -559,9 +559,20 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修
减免备注 | reliefmemo | 否 | String(32) | |
减免备注 | reliefmemo | 否 | String(32) | |
上门距离 | distancekm | 否 | String(32) | 100
上门距离 | distancekm | 否 | String(32) | 100
拉修费 | laxiuamount | 否 | String(32) | 50
拉修费 | laxiuamount | 否 | String(32) | 50
机器信息 | machine | 否 | Json | {"chk":"machine下chk","producttypeid":"new_producttypeid","producttypeidName":"new_producttypeidName","productmodelid":"new_productmodelid","productmodelidName":"new_name","productnumber":"productnumber","modelnumber":"name"} | 添加机器,保存需要填写该字段,其他非必填
机器信息 | machine | 否 | Json | 如下 | 添加机器,保存需要填写该字段,其他非必填
故障信息 | fault | 否 | Json | {"chk":"新增的故障chk","errormoduleid":"","errormoduleidName":"故障现象","errorgroupid":"","errorgroupidName":"原因分类","errorsolutionid":"","errorsolutionidName":"维修措施"} | 添加故障,保存需要填写该字段,其他非必填
故障信息 | fault | 否 | Json | 如下 | 添加故障,保存需要填写该字段,其他非必填
换件信息 | parts | 否 | Json | {"chk":"新增的配件chk","errorpartsid":"","errorpartsidName":"不良品名称","partsid":"","partsidName":"良品名称","qty":"库存"} | 添加换件,保存需要填写该字段,其他非必填
换件信息 | parts | 否 | Json | 如下 | 添加换件,保存需要填写该字段,其他非必填
```
machine
:
{
"
chk"
:
"
machine下chk"
,
"
producttypeid"
:
"
new_producttypeid"
,
"
producttypeidName"
:
"
new_producttypeidName"
,
"
productmodelid"
:
"
new_productmodelid"
,
"
productmodelidName"
:
"
new_name"
,
"
productnumber"
:
"
productnumber"
,
"
modelnumber"
:
"
name"
}
fault
:
{
"
chk"
:
"
新增的故障chk"
,
"
errormoduleid"
:
"
"
,
"
errormoduleidName"
:
"
故障现象"
,
"
errorgroupid"
:
"
"
,
"
errorgroupidName"
:
"
原因分类"
,
"
errorsolutionid"
:
"
"
,
"
errorsolutionidName"
:
"
维修措施"
}
parts
:
{
"
chk"
:
"
新增的配件chk"
,
"
errorpartsid"
:
"
"
,
"
errorpartsidName"
:
"
不良品名称"
,
"
partsid"
:
"
"
,
"
partsidName"
:
"
良品名称"
,
"
qty"
:
"
库存"
}
```
###### 返回结果
###### 返回结果
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment