|
|
@@ -118,7 +118,7 @@ class RejectedBillService
|
|
|
'is_loaded' => 1,
|
|
|
'updated_at' => $updated_at,
|
|
|
];
|
|
|
- if (!$rejectedBill){
|
|
|
+ if (!$rejectedBill && $data->customerid && $data->notes){
|
|
|
$checkedNumber=$this->screenCheckNumber($data->customerid,$data->notes);
|
|
|
if (!$checkedNumber)continue;
|
|
|
$rejects=RejectedBill::query()->where('checked_numbers',$checkedNumber)->get();
|
|
|
@@ -265,7 +265,11 @@ class RejectedBillService
|
|
|
return $pinyin[0];
|
|
|
},$pinyinOwnerName);
|
|
|
$initials=implode("", $pinyinArr);
|
|
|
- preg_match("/$initials{0,5}\d{6,20}/", $note, $result);
|
|
|
+ if (!$initials) {
|
|
|
+ preg_match("/[a-z0-9]{0,5}\d{6,20}/", $note, $result);
|
|
|
+ }else{
|
|
|
+ preg_match("/$initials{0,5}\d{6,20}/", $note, $result);
|
|
|
+ }
|
|
|
if (count($result)<1) return null;
|
|
|
return $result[0];
|
|
|
}
|