|
@@ -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();
|
|
|
}
|