Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
fbdc96f5
authored
Oct 10, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
f8700ef2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
app/Console/Commands/JingDiaoOrderAddress.php
app/Console/Commands/JingDiaoOrderAddress.php
View file @
fbdc96f5
...
...
@@ -80,20 +80,23 @@ class JingDiaoOrderAddress extends Command
// }
//return;
DB
::
Connection
(
"order"
)
->
table
(
"lie_order"
)
->
where
([
"is_type"
=>
1
])
->
chunk
(
100
,
function
(
$orders
){
DB
::
Connection
(
"order"
)
->
table
(
"lie_order"
)
->
where
([
"is_type"
=>
1
])
->
orderBy
(
"order_id"
,
"desc"
)
->
chunk
(
100
,
function
(
$orders
){
foreach
(
$orders
as
$order
){
try
{
$address
=
""
;
$order_id
=
$order
->
order_id
;
$orderRemark
=
$order
->
order_remark
;
if
(
$orderRemark
==
""
||
!
$orderRemark
){
$address
=
$this
->
getRandomAddress
();
$address
=
$address
->
address
;
// $address = $this->getssq($address).$_address;
// $address = $this->getssq($address).$_address;
}
elseif
(
preg_match
(
"/^1[34578]\d
{
9
}
$/"
,
trim
(
$orderRemark
))){
$address
=
$this
->
getRandomAddress
();
$address
=
$address
->
address
;
// $address = $this->getssq($address).$_address;
// $address = $this->getssq($address).$_address;
}
else
{
$address
=
$orderRemark
=
trim
(
$orderRemark
);
...
...
@@ -125,6 +128,9 @@ class JingDiaoOrderAddress extends Command
"consignee"
=>
$this
->
getNames
(
2
),
"mobile"
=>
$this
->
randMobile
(),
]);
}
catch
(
\Exception
$e
){
}
}
});
...
...
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