wugg 1 year ago
parent
commit
4ede9e9a61
1 changed files with 8 additions and 9 deletions
  1. 8 9
      app/admin/controller/DataChange.php

+ 8 - 9
app/admin/controller/DataChange.php

@@ -9,10 +9,10 @@ use think\facade\Db;
 class DataChange extends Base
 {
 	protected $model;
-  public function __construct(App $app) {
-  	parent::__construct($app);
-  	$this->model=new \app\admin\model\DataChange();
-  }
+	  public function __construct(App $app) {
+	    parent::__construct($app);
+	    $this->model=new \app\admin\model\DataChange();
+	  }
 	  /**
 	* @return \think\response\Json|void
 	* @throws \think\db\exception\DataNotFoundException
@@ -37,12 +37,11 @@ class DataChange extends Base
   	}
   	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']??'结算校验失败');
-				}
+  		$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']??'结算校验失败');
+		}
   	}
-  	
   	if($param['type']==3){
   		$orderinfo = Db::name('good_zixun')->where(['spuCode'=>$param['code']])->find();
   	}