wesmiler 1 рік тому
батько
коміт
98b0ab7c00

+ 2 - 1
app/Http/Controllers/Admin/AccountLogController.php

@@ -63,6 +63,7 @@ class AccountLogController extends Backend
 
     /**
      * 调整账户
+     * @param AccountValidator $validator
      * @return array
      */
     public function changeAccount(AccountValidator $validator)
@@ -73,7 +74,7 @@ class AccountLogController extends Backend
             return message($params, false);
         }
 
-        if(AccountLogService::make()->changeAccount($params)){
+        if(AccountLogService::make()->changeAccount($this->userId,$params)){
             return message(AccountLogService::make()->getError(), true);
         }else{
             return message(AccountLogService::make()->getError(), false);

+ 4 - 0
app/Services/Common/AccountLogService.php

@@ -187,4 +187,8 @@ class AccountLogService extends BaseService
         ];
     }
 
+    public function changeAccount($adminId,$params)
+    {
+
+    }
 }

+ 3 - 0
app/Services/Common/MachineService.php

@@ -12,6 +12,7 @@
 namespace App\Services\Common;
 
 use App\Models\AcceptorModel;
+use App\Models\ActionLogModel;
 use App\Models\DrawLogModel;
 use App\Models\LiveGiftModel;
 use App\Models\MachineModel;
@@ -103,6 +104,8 @@ class MachineService extends BaseService
     {
         // 请求参数
         $data = request()->all();
+        ActionLogModel::setTitle("新增编辑算力机");
+        ActionLogModel::record();
         return parent::edit($data); // TODO: Change the autogenerated stub
     }
 

+ 3 - 0
app/Services/Common/MemberService.php

@@ -11,6 +11,7 @@
 
 namespace App\Services\Common;
 
+use App\Models\ActionLogModel;
 use App\Models\MemberModel;
 use App\Services\BaseService;
 
@@ -121,6 +122,8 @@ class MemberService extends BaseService
             $data['district_id'] = $city[2];
         }
         unset($data['city']);
+        ActionLogModel::setTitle("修改会员信息");
+        ActionLogModel::record();
         return parent::edit($data); // TODO: Change the autogenerated stub
     }
 

+ 3 - 0
app/Services/Common/TaskService.php

@@ -12,6 +12,7 @@
 namespace App\Services\Common;
 
 use App\Models\AcceptorModel;
+use App\Models\ActionLogModel;
 use App\Models\TaskModel;
 use App\Models\TradeModel;
 use App\Services\BaseService;
@@ -95,6 +96,8 @@ class TaskService extends BaseService
     {
         // 请求参数
         $data = request()->all();
+        ActionLogModel::setTitle("新增编辑任务");
+        ActionLogModel::record();
         return parent::edit($data); // TODO: Change the autogenerated stub
     }
 

+ 13 - 0
app/Services/Common/VideosService.php

@@ -12,6 +12,7 @@
 namespace App\Services\Common;
 
 use App\Models\AcceptorModel;
+use App\Models\ActionLogModel;
 use App\Models\TaskModel;
 use App\Models\TradeModel;
 use App\Models\VideoModel;
@@ -156,7 +157,19 @@ class VideosService extends BaseService
         if(!empty($data['albums'])){
             $data['albums'] = $data['albums'] && is_array($data['albums']) ? json_encode($data['albums']) : $data['albums'];
         }
+        ActionLogModel::setTitle("新增编辑短视频");
+        ActionLogModel::record();
         return parent::edit($data); // TODO: Change the autogenerated stub
     }
 
+    /**
+     * @return array
+     */
+    public function status()
+    {
+        ActionLogModel::setTitle("审核短视频");
+        ActionLogModel::record();
+        return parent::status(); // TODO: Change the autogenerated stub
+    }
+
 }

+ 3 - 15
app/Services/Common/WalletService.php

@@ -12,6 +12,7 @@
 namespace App\Services\Common;
 
 use App\Models\AcceptorModel;
+use App\Models\ActionLogModel;
 use App\Models\LiveGiftModel;
 use App\Models\TaskModel;
 use App\Models\TradeModel;
@@ -102,21 +103,6 @@ class WalletService extends BaseService
             return message("秘钥不能为空", false);
         }
 
-//        if(!empty($data['private_key']) && !empty($data['address'])){
-//            $address = isset($data['address']) ? trim($data['address']) : '';
-//            $privateKey = isset($data['private_key']) ? trim($data['private_key']) : '';
-//            $privateKey = \App\Services\WalletService::getAddressPrivateKey($privateKey, $address, 2);
-//            if ($coinType == 1) {
-//                $balance = \App\Services\WalletService::getTrcUsdtBalance($address);
-//            } else {
-//                $balance = \App\Services\WalletService::getTrcUsdtBalance($address);
-//            }
-//
-//            if ($balance >= $amount) {
-//                return ['address' => $address, 'private_key' => $privateKey];
-//            }
-//        }
-
         if (!isset($data['name']) || $data['name'] == '') {
             return message("钱包名称不能为空", false);
         }
@@ -126,6 +112,8 @@ class WalletService extends BaseService
         if (!isset($data['status']) || $data['status'] == '') {
             return message("状态不能为空", false);
         }
+        ActionLogModel::setTitle("新增/编辑平台钱包");
+        ActionLogModel::record();
         return parent::edit($data); // TODO: Change the autogenerated stub
     }