Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
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
5a809dba
authored
Jul 03, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新导出
parent
458ac1b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
app/Http/Controllers/HandleController.php
app/Model/ExportModel.php
config/website.php
app/Http/Controllers/HandleController.php
View file @
5a809dba
...
...
@@ -137,6 +137,14 @@ class HandleController extends Controller
}
private
function
e
(){
$input
[
'picking_type'
]
=
2
;
$input
[
'create_uid2'
]
=
6
;
$client
=
new
\Hprose\Http\Client
(
"http://szyunxin.ichunt.com/server/putawayList"
,
false
);
$d
=
$client
->
putawayListServer
(
\GuzzleHttp\json_encode
(
$input
));
print_r
(
$d
);
die
;
$input
[
'create_uid2'
]
=
1
;
//用户id
$input
[
'status'
]
=
'-10,2'
;
//状态
$client
=
new
\Hprose\Http\Client
(
"http://yunxin.liexin.com/server/abnormlList"
,
false
);
...
...
app/Model/ExportModel.php
View file @
5a809dba
...
...
@@ -180,28 +180,21 @@ class ExportModel
$account
=
(
new
SupplierAccountModel
())
->
select
(
"appid"
,
"key"
)
->
where
(
"id"
,
$input
[
'create_uid2'
])
->
first
();
if
(
!
$account
)
return
[
1001
,
'不存在此用户id'
];
$res
=
(
new
Server
FoostoneModel
(
$account
->
appid
,
$account
->
key
))
->
Sku
List
(
$input
,
2
);
$res
=
(
new
Server
PurModel
(
$account
->
appid
,
$account
->
key
))
->
Putaway
List
(
$input
,
2
);
if
(
empty
(
@
$res
[
'data'
])
||
!
count
(
$res
[
'data'
])
){
return
$res
;
}
$out
=
[];
foreach
(
$res
[
'data'
]
as
$k
=>
$v
){
array_push
(
$out
,[
'encoded'
=>
$v
[
'encoded'
],
'goods_type_name'
=>
$v
[
'goods_type_name'
],
'goods_name'
=>
$v
[
'goods_name'
],
'brand_name'
=>
$v
[
'brand_name'
],
'packing_name'
=>
$v
[
'packing_name'
],
'encap'
=>
$v
[
'encap'
],
'mpq'
=>
$v
[
'mpq'
],
'status_name'
=>
$v
[
'status_name'
],
'new_cost'
=>
$v
[
'new_cost'
],
'商家实际库存'
=>
""
,
'LockStock'
=>
$v
[
'LockStock'
],
'stock'
=>
$v
[
'stock'
],
'putaway_sn'
=>
$v
[
'putaway_sn'
],
'picking_sn'
=>
$v
[
'picking_sn'
],
'amount'
=>
$v
[
'amount'
],
'currency'
=>
$v
[
'currency'
],
'pay_type'
=>
$v
[
'pay_type'
],
'create_time'
=>
$v
[
'create_time'
],
]);
}
$res
[
'data'
]
=
$out
;
return
$res
;
}
...
...
config/website.php
View file @
5a809dba
...
...
@@ -2,7 +2,7 @@
#不与线上环境同步
return
[
"URL_EXPORT"
=>
"http://
export.liexin.com
"
,
"URL_EXPORT"
=>
"http://
szexport.ichunt.net
"
,
"URL_ICHUNT"
=>
"https://www.ichunt.com"
,
"URL_YUNXIN"
=>
"http://yunxin.liexin.com"
,
"URL_FINANCE"
=>
"http://finance.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