소스 검색

退款任务

whitefang 1 년 전
부모
커밋
3e188dfdae
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      app/common/command/QueryRefund.php

+ 3 - 2
app/common/command/QueryRefund.php

@@ -210,10 +210,11 @@ class QueryRefund extends Command
                     $propertyHeadId = $propertyHeadInfo['id'];
                     // 出账记录 - 扣除
                     PropertySurplusLog::create([
-                        'in_out' => 3,
+                        'in_out' => 2,
                         'property_head_id' => $propertyHeadId,
                         'amount' => $property_commission['commission_amount'],
-                        'status' => 1
+                        'status' => 1,
+                        'remark'=> '用户已退款,分成金额已退回'
                     ]);
                     // 更新 物业负责人余额收益
                     PropertyHead::where(['id' => $propertyHeadId])->update([