Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
note-library
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fdf03ae1
authored
May 11, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
d668c01b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
.env
app/Http/Controllers/AjaxController.php
.env
View file @
fdf03ae1
...
...
@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.net'
ERP_
SUPPLY_
DOMAIN=http://192.168.1.235:6888
ERP_DOMAIN=http://192.168.1.235:6888
ERP_DB_NAME=ICHUNT
\ No newline at end of file
app/Http/Controllers/AjaxController.php
View file @
fdf03ae1
...
...
@@ -92,9 +92,10 @@ Class AjaxController extends Controller
$tmpl
->
status
=
(
$tmpl
->
status
==
-
1
)
?
1
:-
1
;
$tmpl
->
save
();
//此处推送到erp
$a
=
$this
->
erp
->
createIssueLabel
(
1
,
"测试模板0001"
,
"田超"
,
1
);
dump
(
$a
);
$this
->
pushTemplateErp
();
// dump($this->erp);
// $a = $this->erp->createIssueLabel(1,"测试模板0001","田超",1);
// dump($a);
return
$this
->
ajaxReturn
(
0
,
"修改成功"
);
...
...
@@ -140,12 +141,19 @@ Class AjaxController extends Controller
protected
function
pushTemplateErp
(){
try
{
//登录
$soap
=
new
\SoapClient
(
env
(
"ERP_
SUPPLY_
DOMAIN"
)
.
'/ormrpc/services/EASLogin?wsdl'
);
$res
=
$soap
->
login
(
'PT'
,
'123456'
,
'eas'
,
env
(
'ERP_
SUPPLY_
DB_NAME'
),
'L2'
,
1
,
'BaseDB'
);
$soap
=
new
\SoapClient
(
env
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/EASLogin?wsdl'
);
$res
=
$soap
->
login
(
'PT'
,
'123456'
,
'eas'
,
env
(
'ERP_DB_NAME'
),
'L2'
,
1
,
'BaseDB'
);
//接口
$this
->
erp
=
new
\SoapClient
(
ENV
(
"ERP_SUPPLY_DOMAIN"
)
.
'/ormrpc/services/WSIchuntjKFacade?wsdl'
);
$this
->
erp
=
new
\SoapClient
(
ENV
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/WSIchuntjKFacade?wsdl'
);
dump
(
$this
->
erp
);
$this
->
erp
->
createIssueLabel
(
json_encode
([
"TemplateId"
=>
1
,
"templateNmae"
=>
"aaaa"
,
"createUser"
=>
"bbbb"
,
"status"
=>
1
,
]));
}
catch
(
\Exception
$e
){
dump
(
$e
->
getMessage
());
}
}
...
...
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