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
ff9acd37
authored
Feb 22, 2023
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印
parent
e00dcea4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
.env
app/Http/Controllers/AjaxController.php
app/Services/LabelService.php
.env
View file @
ff9acd37
...
...
@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.net'
ERP_DOMAIN=http://192.168.1.235:6886
ERP_DB_NAME=ICHUNT
\ No newline at end of file
ERP_DOMAIN=http://192.168.1.238:6888
ERP_DB_NAME=DEMO
\ No newline at end of file
app/Http/Controllers/AjaxController.php
View file @
ff9acd37
...
...
@@ -156,7 +156,7 @@ Class AjaxController extends Controller
$template
=
TemplateListModel
::
find
(
$t_id
);
//登录
$soap
=
new
\SoapClient
(
env
(
"ERP_DOMAIN"
)
.
'/ormrpc/services/EASLogin?wsdl'
);
$res
=
$soap
->
login
(
'TC'
,
'unicom'
,
'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'
);
$res
=
$this
->
erp
->
createIssueLabel
(
json_encode
([
...
...
app/Services/LabelService.php
View file @
ff9acd37
...
...
@@ -225,7 +225,7 @@ class LabelService {
$returnHtml
=
[];
foreach
(
$datas
as
$item
){
$pringNums
=
$item
[
"print_num"
];
for
(
$i
=
0
;
$i
<
=
$pringNums
;
$i
++
){
for
(
$i
=
0
;
$i
<
$pringNums
;
$i
++
){
$html
=
$templateList
[
$item
[
"template_id"
]][
"template_extend"
][
"html"
];
$createHtml
=
(
new
\App\Services\LabelService
)
->
getLabelOfflineHtml
(
$html
,
$item
);
if
(
$createHtml
){
...
...
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