提交 a9102563 authored 作者: chengye's avatar chengye

test

上级 6bb1222a
...@@ -491,8 +491,8 @@ class Payment extends Base ...@@ -491,8 +491,8 @@ class Payment extends Base
} }
} }
dd($data);
$res = $this->createFkNumb($data); $res = $this->createFkNumb($data);
dd($res);
$result = false; $result = false;
if(!empty($res['data'])){ if(!empty($res['data'])){
$payment->status_fk = 1; $payment->status_fk = 1;
...@@ -502,13 +502,9 @@ class Payment extends Base ...@@ -502,13 +502,9 @@ class Payment extends Base
$fkModel->oafk_numb = $res['data']['numb']; $fkModel->oafk_numb = $res['data']['numb'];
$p = $payment->save(); $p = $payment->save();
$f = $fkModel->save(); $f = $fkModel->save();
var_dump($f);
dd($p);
$result = $payment->save() && $fkModel->save(); $result = $payment->save() && $fkModel->save();
} }
if($result) return json(['status'=>1,'message'=>'创建单据成功']); if($result) return json(['status'=>1,'message'=>'创建单据成功']);
else return json(['status'=>0,'message'=>'创建单据失败']); else return json(['status'=>0,'message'=>'创建单据失败']);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论