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
95824262
Commit
95824262
authored
Sep 23, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 更换方法名称
parent
db3cce1f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
22 deletions
+25
-22
Galanz.php
application/controllers/api/Galanz.php
+12
-9
Rgalanz.php
application/controllers/test/Rgalanz.php
+7
-7
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+4
-4
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+2
-2
No files found.
application/controllers/api/Galanz.php
View file @
95824262
...
...
@@ -269,41 +269,43 @@ class Galanz extends BaseController
}
//安装单-添加明细信息
public
function
add
Machine
UserProfileOrder
()
public
function
add
Products
UserProfileOrder
()
{
$param
=
$this
->
input
->
post
();
//验证参数
$obj
=
$this
->
receiveGalanzObj
();
$obj
->
SetValues
(
$param
);
$obj
->
CheckAdd
Machine
UserProfileOrderValues
();
$obj
->
CheckAdd
Products
UserProfileOrderValues
();
$values
=
$obj
->
GetValues
();
$this
->
saveLog
(
$values
[
'id'
],
'add
Machine
UserProfileOrder'
,
$param
);
$this
->
saveLog
(
$values
[
'id'
],
'add
Products
UserProfileOrder'
,
$param
);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$order
=
$sourceGalanzObj
->
UserProfileOrderDetail
(
$values
[
'id'
]);
$order
=
$obj
->
SetAddMachineUserProfileOrderValues
(
$order
,
$values
);
$result
=
$sourceGalanzObj
->
AddMachineUserProfileOrder
(
$order
[
'new_id'
],
$order
);
$order
=
$obj
->
SetAddProductsUserProfileOrderValues
(
$order
,
$values
);
$result
=
$sourceGalanzObj
->
AddProductsUserProfileOrder
(
$order
[
'new_id'
],
$order
);
$result
=
$this
->
diffOrder
(
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
//安装单-删除明细信息
public
function
del
Machine
UserProfileOrder
()
public
function
del
Products
UserProfileOrder
()
{
$param
=
$this
->
input
->
post
();
//验证参数
$obj
=
$this
->
receiveGalanzObj
();
$obj
->
SetValues
(
$param
);
$obj
->
CheckDel
Machine
UserProfileOrderValues
();
$obj
->
CheckDel
Products
UserProfileOrderValues
();
$values
=
$obj
->
GetValues
();
$this
->
saveLog
(
$values
[
'id'
],
'delMachineUserProfileOrder'
,
$param
);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$order
=
$sourceGalanzObj
->
UserProfileOrderDetail
(
$values
[
'id'
]);
$order
=
$obj
->
SetDelMachineUserProfileOrderValues
(
$order
,
$values
);
$result
=
$sourceGalanzObj
->
DelMachineUserProfileOrder
(
$order
[
'new_id'
],
$order
);
$order
=
$obj
->
SetDelProductsUserProfileOrderValues
(
$order
,
$values
);
$result
=
$sourceGalanzObj
->
DelProductsUserProfileOrder
(
$order
[
'new_id'
],
$order
);
$result
=
$this
->
diffOrder
(
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
...
...
@@ -323,6 +325,7 @@ class Galanz extends BaseController
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$order
=
$sourceGalanzObj
->
UserProfileOrderDetail
(
$values
[
'id'
]);
$result
=
$sourceGalanzObj
->
SendUserProfileOrder
(
$order
[
'new_id'
],
$order
);
$result
=
$this
->
diffOrder
(
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
...
...
application/controllers/test/Rgalanz.php
View file @
95824262
...
...
@@ -576,8 +576,8 @@ class Rgalanz extends BaseController
'installer'
=>
''
,
//安装人员
'goldcard'
=>
''
,
//金卡
'remarks'
=>
''
,
//备注
'qualityresult'
=>
'
1
'
,
'custadvice'
=>
'
'
,
//顾客意见
'qualityresult'
=>
''
,
'custadvice'
=>
''
,
//顾客意见
];
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
...
...
@@ -593,7 +593,7 @@ class Rgalanz extends BaseController
$this
->
show
(
$result
[
'data'
]);
}
public
function
add
Machine
UserProfileOrder
()
public
function
add
Products
UserProfileOrder
()
{
$obj
=
$this
->
galanzObj
();
...
...
@@ -610,7 +610,7 @@ class Rgalanz extends BaseController
$obj
->
SetSign
();
$values
=
$obj
->
GetValues
();
$url
=
self
::
$apiUrl
.
"api/galanz/add
Machine
UserProfileOrder"
;
$url
=
self
::
$apiUrl
.
"api/galanz/add
Products
UserProfileOrder"
;
$result
=
$this
->
curlPost
(
$url
,
$values
);
$result
[
'data'
]
=
json_decode
(
$result
[
'data'
],
true
);
...
...
@@ -618,7 +618,7 @@ class Rgalanz extends BaseController
$this
->
show
(
$result
[
'data'
]);
}
public
function
del
Machine
UserProfileOrder
()
public
function
del
Products
UserProfileOrder
()
{
$obj
=
$this
->
galanzObj
();
...
...
@@ -627,7 +627,7 @@ class Rgalanz extends BaseController
'account'
=>
self
::
$testu
,
'pwd'
=>
self
::
$testp
,
'id'
=>
'1650bb3a-46b0-408c-9694-6549a8d9d068'
,
'chk'
=>
'
de580f86-70db-4452-9c99-08d4aa273cbb
'
'chk'
=>
'
22c31a3c-4d2c-48db-a12c-8be13602c926
'
];
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
...
...
@@ -635,7 +635,7 @@ class Rgalanz extends BaseController
$obj
->
SetSign
();
$values
=
$obj
->
GetValues
();
$url
=
self
::
$apiUrl
.
"api/galanz/del
Machine
UserProfileOrder"
;
$url
=
self
::
$apiUrl
.
"api/galanz/del
Products
UserProfileOrder"
;
$result
=
$this
->
curlPost
(
$url
,
$values
);
$result
[
'data'
]
=
json_decode
(
$result
[
'data'
],
true
);
...
...
application/libraries/Receive/ReceiveGalanz.php
View file @
95824262
...
...
@@ -288,13 +288,13 @@ class ReceiveGalanz extends Receive
$this
->
SetDefaultValues
(
$dfields
);
}
public
function
CheckAdd
Machine
UserProfileOrderValues
()
public
function
CheckAdd
Products
UserProfileOrderValues
()
{
$fileds
=
[
'id'
,
'producenumber'
];
$this
->
CheckValues
(
$fileds
);
}
public
function
SetAdd
Machine
UserProfileOrderValues
(
$order
,
$values
)
public
function
SetAdd
Products
UserProfileOrderValues
(
$order
,
$values
)
{
if
(
$values
[
'producenumber'
])
{
$order
[
'txtproducenumber'
]
=
trim
(
$values
[
'producenumber'
]);
...
...
@@ -303,13 +303,13 @@ class ReceiveGalanz extends Receive
return
$order
;
}
public
function
CheckDel
Machine
UserProfileOrderValues
()
public
function
CheckDel
Products
UserProfileOrderValues
()
{
$fileds
=
[
'id'
,
'chk'
];
$this
->
CheckValues
(
$fileds
);
}
public
function
SetDel
Machine
UserProfileOrderValues
(
$order
,
$values
)
public
function
SetDel
Products
UserProfileOrderValues
(
$order
,
$values
)
{
if
(
$values
[
'chk'
]
&&
$order
[
'products'
])
{
foreach
(
$order
[
'products'
]
as
$kk
=>
$vv
)
{
...
...
application/libraries/Source/SourceGalanz.php
View file @
95824262
...
...
@@ -657,7 +657,7 @@ class SourceGalanz extends Source
* @param $data
* @return mixed
*/
public
function
Add
Machine
UserProfileOrder
(
$id
,
$data
)
public
function
Add
Products
UserProfileOrder
(
$id
,
$data
)
{
$result
=
$this
->
HandelUserProfileOrder
(
$id
,
$data
,
'Add'
);
$this
->
HandelOrderError
(
$result
);
...
...
@@ -671,7 +671,7 @@ class SourceGalanz extends Source
* @param $data
* @return mixed
*/
public
function
Del
Machine
UserProfileOrder
(
$id
,
$data
)
public
function
Del
Products
UserProfileOrder
(
$id
,
$data
)
{
$result
=
$this
->
HandelUserProfileOrder
(
$id
,
$data
,
'Del'
);
$this
->
HandelOrderError
(
$result
);
...
...
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