|
@@ -32,14 +32,14 @@ class DataChange extends Base
|
|
|
$orderinfo = Db::name("purchease_order")->where(["cgdNo"=>$param['code']])->find();
|
|
|
$fininfo =GetFin('admin/orderischeck',['token'=>$this->post['token'],'orderCode'=>$param['code'],'is_cgd_check'=>1]);
|
|
|
if(!isset($fininfo['code'])||$fininfo['code']!=0 ){
|
|
|
- return json_show(1005, $fininfo['message']??'结算校验失败');
|
|
|
+ return json_show(10005, $fininfo['message']??'结算校验失败',$fininfo['data']??[]);
|
|
|
}
|
|
|
}
|
|
|
if($param['type']==2){
|
|
|
$orderinfo = Db::name('sale')->where(['orderCode'=>$param['code']])->find();
|
|
|
$fininfo =GetFin('admin/orderischeck',['token'=>$this->post['token'],'orderCode'=>$param['code'],'is_cgd_check'=>0]);
|
|
|
if(!isset($fininfo['code'])||$fininfo['code']!=0 ){
|
|
|
- return json_show(1005, $fininfo['message']??'结算校验失败');
|
|
|
+ return json_show(10005, $fininfo['message']??'结算校验失败',$fininfo['data']??[]);
|
|
|
}
|
|
|
}
|
|
|
if($param['type']==3){
|
|
@@ -114,13 +114,13 @@ class DataChange extends Base
|
|
|
if($info->type==1){
|
|
|
$fininfo =GetFin('admin/orderischeck',['token'=>$this->post['token'],'orderCode'=>$info->code,"is_cgd_check"=>1]);
|
|
|
if(!isset($fininfo['code'])||$fininfo['code']!=0 ){
|
|
|
- return json_show(1005, $fininfo['message']??'结算校验失败');
|
|
|
+ return json_show(10005, $fininfo['message']??'结算校验失败',$fininfo['data']??[]);
|
|
|
}
|
|
|
}
|
|
|
if($info->type==2){
|
|
|
$fininfo =GetFin('admin/orderischeck',['token'=>$this->post['token'],'orderCode'=>$info->code,'is_cgd_check'=>0]);
|
|
|
if(!isset($fininfo['code'])||$fininfo['code']!=0 ){
|
|
|
- return json_show(1005, $fininfo['message']??'结算校验失败');
|
|
|
+ return json_show(10005, $fininfo['message']??'结算校验失败',$fininfo['data']??[]);
|
|
|
}
|
|
|
}
|
|
|
}
|