提交 164d5c81 authored 作者: chengye's avatar chengye

test

上级 e778f374
...@@ -114,13 +114,12 @@ class Payment ...@@ -114,13 +114,12 @@ class Payment
public function test() public function test()
{ {
$account_id = 'ZH2020071609062'; $account_id = 'ZH2020071609062';
$payment_id = 'JF2020071634700'; $payment_id = 'JF2020071634700';
$res = null; $res = null;
try { try {
$res = (new Invoice())->writeOffFromPayment($account_id, $payment_id); $res = (new Invoice())->writeOffFromPayment($account_id, $payment_id);
} catch (\Exception $e){ } catch (\Exception $e){
$res = $e->getMessage(); $res = $e->getMessage();
Log::error('##res##:'.$res);
} }
return $res; return $res;
} }
......
...@@ -327,6 +327,7 @@ class Invoice extends Base ...@@ -327,6 +327,7 @@ class Invoice extends Base
//从缴费单消账单 //从缴费单消账单
public function writeOffFromPayment($account_id,$payment_id){ public function writeOffFromPayment($account_id,$payment_id){
return 'aaaaaaa';
Log::info('触发销账:'.$account_id.' | '.$payment_id); Log::info('触发销账:'.$account_id.' | '.$payment_id);
//获取缴费单对象 //获取缴费单对象
$payment = EmPayment::where('payment_id','=',$payment_id)->find(); $payment = EmPayment::where('payment_id','=',$payment_id)->find();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论