wugg 3 months ago
parent
commit
bda1fd6126
3 changed files with 3 additions and 2 deletions
  1. 1 1
      app/cxinv/model/FinancialManager.php
  2. 1 0
      app/cxinv/model/TagLog.php
  3. 1 1
      app/provider.php

+ 1 - 1
app/cxinv/model/FinancialManager.php

@@ -75,7 +75,7 @@ class FinancialManager extends Base{
     public static $ManagerStatusCn=[1=>'正常',2=>'计提',3=>'异常'];
 
     public function ProductRela(){
-        return $this->hasMany(ManagerProduct::class,'id','manager_id');
+        return $this->hasMany(ManagerProduct::class,'manager_id','id');
     }
 
     public function CreateData($data){

+ 1 - 0
app/cxinv/model/TagLog.php

@@ -314,6 +314,7 @@ namespace app\cxinv\model;
                     $pay->winv_fee=$pay->winv_fee+$fee;
                     $pay->inv_status = $pay->winv_fee==0 && $pay->inv_fee==0? 3:($pay->ainv_fee==0?1:2);
                     $payInfo->save();
+                    $pay->save();
                 }
 		 	}
 		 }

+ 1 - 1
app/provider.php

@@ -5,5 +5,5 @@ use app\Request;
 // 容器Provider定义文件
 return [
     'think\Request'          => Request::class,
-     'think\exception\Handle' => \app\common\Error::class,
+    'think\exception\Handle' => \app\common\Error::class,
 ];