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
69b35c0a
authored
May 13, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
d6b0638f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
app/Http/Controllers/AjaxController.php
app/Http/Controllers/PermController.php
app/Http/Controllers/WebController.php
app/Services/LabelService.php
config/website.php
app/Http/Controllers/AjaxController.php
View file @
69b35c0a
...
@@ -95,10 +95,6 @@ Class AjaxController extends Controller
...
@@ -95,10 +95,6 @@ Class AjaxController extends Controller
$tmpl
->
save
();
$tmpl
->
save
();
//此处推送到erp
//此处推送到erp
$this
->
pushTemplateErp
();
$this
->
pushTemplateErp
();
// dump($this->erp);
// $a = $this->erp->createIssueLabel(1,"测试模板0001","田超",1);
// dump($a);
return
$this
->
ajaxReturn
(
0
,
"修改成功"
);
return
$this
->
ajaxReturn
(
0
,
"修改成功"
);
}
else
{
}
else
{
...
@@ -144,18 +140,19 @@ Class AjaxController extends Controller
...
@@ -144,18 +140,19 @@ Class AjaxController extends Controller
try
{
try
{
//登录
//登录
$soap
=
new
\SoapClient
(
env
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/EASLogin?wsdl'
);
$soap
=
new
\SoapClient
(
env
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/EASLogin?wsdl'
);
$res
=
$soap
->
login
(
'PT'
,
'123456
'
,
'eas'
,
env
(
'ERP_DB_NAME'
),
'L2'
,
1
,
'BaseDB'
);
$res
=
$soap
->
login
(
'TC'
,
'unicom
'
,
'eas'
,
env
(
'ERP_DB_NAME'
),
'L2'
,
1
,
'BaseDB'
);
//接口
//接口
$this
->
erp
=
new
\SoapClient
(
ENV
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/WSIchuntjKFacade?wsdl'
);
$this
->
erp
=
new
\SoapClient
(
ENV
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/WSIchuntjKFacade?wsdl'
);
// dump($this->erp);
$tmp
=
$this
->
erp
->
createIssueLabel
(
json_encode
([
$this
->
erp
->
createIssueLabel
(
json_encode
([
"templateId"
=>
1
,
"templateId"
=>
1
,
"templateNmae"
=>
"aaaa"
,
"templateNmae"
=>
"aaaa"
,
"createUser"
=>
"bbbb"
,
"createUser"
=>
"bbbb"
,
"status"
=>
1
,
"status"
=>
1
,
]));
]));
dump
(
$tmp
);
return
true
;
return
true
;
}
catch
(
\Exception
$e
){
}
catch
(
\Exception
$e
){
dump
(
$e
);
return
false
;
return
false
;
// dump($e->getMessage());
// dump($e->getMessage());
}
}
...
...
app/Http/Controllers/PermController.php
View file @
69b35c0a
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
}
}
// 查看菜单权限
// 查看菜单权限
$permId
=
'cron_'
.
$permId
.
'_check'
;
$permId
=
$permId
.
'_check'
;
if
(
!
in_array
(
$permId
,
$perms
))
{
if
(
!
in_array
(
$permId
,
$perms
))
{
unset
(
$menus
[
$k
]);
unset
(
$menus
[
$k
]);
...
...
app/Http/Controllers/WebController.php
View file @
69b35c0a
...
@@ -93,7 +93,7 @@ class WebController extends Controller
...
@@ -93,7 +93,7 @@ class WebController extends Controller
public
function
showPage
(
$request
,
$info
){
public
function
showPage
(
$request
,
$info
){
$info
[
'title'
]
=
'预览'
;
$info
[
'title'
]
=
'预览'
;
$id
=
$request
->
input
(
"tmpl_relation_id"
,
0
);
$id
=
$request
->
input
(
"tmpl_relation_id"
,
0
);
$html
=
(
new
\App\Services\LabelService
)
->
getLabelHtml
(
5
);
$html
=
(
new
\App\Services\LabelService
)
->
getLabelHtml
(
$id
);
$info
[
"html"
]
=
$html
;
$info
[
"html"
]
=
$html
;
return
view
(
'web'
,
$info
);
return
view
(
'web'
,
$info
);
}
}
...
...
app/Services/LabelService.php
View file @
69b35c0a
...
@@ -10,6 +10,8 @@ use App\Http\Controllers\Controller;
...
@@ -10,6 +10,8 @@ use App\Http\Controllers\Controller;
use
App\Model\TemplateListModel
;
use
App\Model\TemplateListModel
;
use
App\Model\NodesModel
;
use
App\Model\NodesModel
;
use
App\Model\TmplRelationsModel
;
use
App\Model\TmplRelationsModel
;
use
DNS1D
;
use
DNS2D
;
class
LabelService
{
class
LabelService
{
public
function
getLabelHtml
(
$id
){
public
function
getLabelHtml
(
$id
){
...
...
config/website.php
View file @
69b35c0a
...
@@ -12,7 +12,7 @@ return [
...
@@ -12,7 +12,7 @@ return [
'domain'
=>
'liexin.net'
,
'domain'
=>
'liexin.net'
,
'risk_url'
=>
'http://
risk
.liexin.net'
,
'risk_url'
=>
'http://
label
.liexin.net'
,
// API项目
// API项目
'api_domain'
=>
'http://api.liexin.com/'
,
'api_domain'
=>
'http://api.liexin.com/'
,
// 获取用户权限接口
// 获取用户权限接口
...
...
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