Commit fbdc96f5 by 孙龙

up

parent f8700ef2
Showing with 9 additions and 3 deletions
......@@ -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){
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment