提交 00d7f2aa authored 作者: chengye's avatar chengye

修复旧数据中已经确收但是没有与OA对应,付款单号报错的问题

上级 b3990434
...@@ -261,6 +261,11 @@ class Payment extends Base ...@@ -261,6 +261,11 @@ class Payment extends Base
if($payment->status > 1 && $payment->status != 7){ if($payment->status > 1 && $payment->status != 7){
$fkModel = EmPaymentFk::get(['payment_id'=>$payment->payment_id]); $fkModel = EmPaymentFk::get(['payment_id'=>$payment->payment_id]);
if(!$fkModel) {
$fkModel = new EmPaymentFk();
$fkModel->oafk_numb = '';
$fkModel->link = '';
}
$fkModel->link = config('oafk.base_url').config('oafk.link') . $fkModel->oafk_id; $fkModel->link = config('oafk.base_url').config('oafk.link') . $fkModel->oafk_id;
} else if ($payment->status == 7) { } else if ($payment->status == 7) {
$fkModel = EmCheckBill::get(['mode_id'=>$payment->payment_id]); $fkModel = EmCheckBill::get(['mode_id'=>$payment->payment_id]);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论