Explorar el Código

分红-增加限制分配条件,并增加记录日志

sunxbiao hace 6 meses
padre
commit
62f863c530
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      app/controller/api/store/merchant/TaskPartnerProfits.php

+ 3 - 3
app/controller/api/store/merchant/TaskPartnerProfits.php

@@ -247,7 +247,7 @@ class TaskPartnerProfits
247
             try {
247
             try {
248
                 $spread_user_list = Db::query($sql);
248
                 $spread_user_list = Db::query($sql);
249
             } catch (\Exception $exception) {
249
             } catch (\Exception $exception) {
250
-                return json($exception->getMessage());
250
+                return app('json')->fail($exception->getMessage());
251
             }
251
             }
252
             $removeUserIdList = array_merge(explode(",", trim($spread_user_list[0]['uids'], '$,')), $removeUserIdList);
252
             $removeUserIdList = array_merge(explode(",", trim($spread_user_list[0]['uids'], '$,')), $removeUserIdList);
253
         }
253
         }
@@ -270,7 +270,7 @@ class TaskPartnerProfits
270
         }
270
         }
271
 
271
 
272
         if ($weekRecord <= 0) {
272
         if ($weekRecord <= 0) {
273
-            return json('无效分红金额');
273
+            return app('json')->fail('无效分红金额');
274
         }
274
         }
275
 
275
 
276
 
276
 
@@ -548,7 +548,7 @@ class TaskPartnerProfits
548
         $dividendLogRepository = app()->make(DividendLogRepository::class);
548
         $dividendLogRepository = app()->make(DividendLogRepository::class);
549
         $dividendLogRepository->createByEntity($dividendLogEntity);
549
         $dividendLogRepository->createByEntity($dividendLogEntity);
550
 
550
 
551
-        return json($salesArr);
551
+        return app('json')->success($salesArr);
552
     }
552
     }
553
 
553
 
554
     /**
554
     /**