提交 3d2ae57c authored 作者: chengye's avatar chengye

test

上级 ab8a92de
......@@ -45,10 +45,8 @@ class Payment
$payment->save();
$res = '';
try {
$res = (new Invoice())->writeOffFromPayment($payment->account_id, $payment->payment_id);
$res = (new WriteOff())->writeOffFromPayment($payment->account_id, $payment->payment_id);
} catch (\Exception $e){
$res = $e->getMessage();
Log::error('##res##:'.$res);
......@@ -117,7 +115,6 @@ class Payment
$account_id = 'ZH2020071609062';
$payment_id = 'JF2020071634700';
$res = 'cc';
$res = (new WriteOff())->writeOffFromPayment($account_id, $payment_id);
return $res;
......
......@@ -3,7 +3,6 @@
namespace app\em\controller;
use app\em\model\EmAccount;
use app\em\model\EmInvoice;
use app\em\model\EmPayment;
......@@ -16,7 +15,6 @@ class WriteOff extends Controller
{
public function writeOffFromPayment($account_id,$payment_id){
return $account_id;
Log::info('触发销账:'.$account_id.' | '.$payment_id);
//获取缴费单对象
$payment = EmPayment::where('payment_id','=',$payment_id)->find();
......@@ -72,6 +70,8 @@ class WriteOff extends Controller
*/
private function writeOff($paymentIds,$invoiceIds){
Log::info('执行销账:');
//获取可销账缴费单
$payments = EmPayment::where('payment_id','in',$paymentIds)->select();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论