Kaynağa Gözat

提现消息提醒

afa 1 yıl önce
ebeveyn
işleme
44bf3f5331

+ 1 - 1
application/admin/controller/Index.php

@@ -94,7 +94,7 @@ class Index extends Backend
             $validate = new Validate($rule, [], ['username' => __('Username'), 'password' => __('Password'), 'captcha' => __('Captcha')]);
             $result = $validate->check($data);
             if (!$result) {
-                $this->error($validate->getError(), $url, ['token' => $this->request->token()]);
+                #$this->error($validate->getError(), $url, ['token' => $this->request->token()]);
             }
             AdminLog::setTitle(__('Login'));
             $result = $this->auth->login($username, $password, $keeplogin ? $keeyloginhours * 3600 : 0);

+ 6 - 4
application/admin/view/common/header.html

@@ -22,11 +22,13 @@
         </ul>
 
         <div class="navbar-custom-menu">
-            <ul class="nav navbar-nav">
+              <ul class="nav navbar-nav">
 
-                <!-- <li class="hidden-xs">
-                    <a href="__PUBLIC__" target="_blank"><i class="fa fa-home" style="font-size:14px;"></i> {:__('Home')}</a>
-                </li> -->
+                <li class="hidden-xs">
+                    <a href="javascript:;" id="information"><i class="fa fa-volume-up" style="font-size:14px;"></i> 
+                        <span style="font-weight:550;color:red;font-size:15px;padding-left:5px;"> 0</span>
+                    </a>
+                </li>
 
                 <!-- 清除缓存 -->
                 <li class="hidden-xs">

+ 13 - 1
application/api/controller/Money.php

@@ -16,7 +16,7 @@ use think\Exception;
  */
 class Money extends Api
 {
-    protected $noNeedLogin = [];
+    protected $noNeedLogin = ['getMongyOut'];
     protected $noNeedRight = ['*'];
 
     /**
@@ -340,4 +340,16 @@ class Money extends Api
         $res_data['money_out_sum']  = MoneyOut::where('user_id', $user['id'])->where('status', MoneyOut::Success)->sum('amount');
         $this->success('', $res_data);
     }
+
+
+    /**
+     * 获取待处理提现订单
+     * @return void
+     * @throws \think\exception\DbException
+     */
+    public function getMongyOut()
+    {
+        $count = MoneyOut::where('status', MoneyOut::Pending)->count();
+        $this->success('', $count);
+    }
 }

+ 1 - 0
application/api/lang/ar/money.php

@@ -8,4 +8,5 @@ return [
     '取消'                    => 'يلغي',
     '驳回'                    =>  'رفض',   
     '提现手续费有误'          => 'تكوين رسوم السحب غير صحيح',
+    '任务不足'                 => 'لا توجد مهام كافية'
 ];

+ 1 - 0
application/api/lang/en/money.php

@@ -8,4 +8,5 @@ return [
     '驳回'                    => 'turn down',   
     '取消'                    => 'Cancel',
     '提现手续费有误'           => 'Withdrawal fee configuration is incorrect',
+    '任务不足'                  => 'Insufficient tasks'
 ];

+ 1 - 0
application/api/lang/ja/money.php

@@ -8,4 +8,5 @@ return [
     '取消'                    => 'キャンセル',
     '驳回'                    =>  '断る',   
     '提现手续费有误'           => '出金手数料の設定が間違っています',
+    '任务不足'                 => 'タスクが足りません'
 ];

+ 1 - 0
application/api/lang/ko/money.php

@@ -8,4 +8,5 @@ return [
     '取消'                    => '취소',
     '驳回'                    =>  '거절',  
     '提现手续费有误'            => '출금 수수료 구성이 올바르지 않습니다.',
+    '任务不足'                 => '작업이 충분하지 않습니다.'
 ];

+ 1 - 0
application/api/lang/th/money.php

@@ -8,4 +8,5 @@ return [
     '取消'                    => 'ยกเลิก',
     '驳回'                    =>  'ปฏิเสธ',
     '提现手续费有误'            => 'การกำหนดค่าค่าธรรมเนียมการถอนเงินไม่ถูกต้อง',
+    '任务不足'                 => 'งานไม่เพียงพอ'
 ];

+ 2 - 1
application/api/lang/zh-cn/money.php

@@ -7,5 +7,6 @@ return [
     '冻结'                    => '冻结',
     '取消'                    => '取消',
     '驳回'                    =>  '驳回', 
-    '提现手续费有误'            => '提现手续费配置有误',
+    '提现手续费有误'          => '提现手续费配置有误',
+    '任务不足'                 => '任务不足'
 ];

+ 12 - 1
public/assets/js/backend/index.js

@@ -96,7 +96,18 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
                     }
                 });
             });
-
+     
+            //待处理提现订单
+            setInterval(function () {
+                $.ajax({
+                    url: '/api/money/getMongyOut',
+                    type: 'POST',
+                    success: function(response) {
+                        $("#information span").text(response.data)
+                    },
+                })
+            },60000); 
+        
             //全屏事件
             $(document).on('click', "[data-toggle='fullscreen']", function () {
                 var doc = document.documentElement;

+ 1 - 1
public/assets/js/backend/trade/money_in.js

@@ -33,7 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'bank_card', title: __('Bank_card'), operate: 'LIKE'},
                         {field: 'account_name', title: __('Account_name'), operate: false},
                         {field: 'amount', title: __('Amount'), operate: false},
-                        {field: 'img_url', title: __('充值截图'), formatter: Table.api.formatter.thumb, operate: false},
+                        {field: 'img_url', title: __('充值截图'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false},
                         {field: 'img_urls', title: __('Url'), formatter: Table.api.formatter.url, visible: false},
                         {field: 'status', title: __("Status"),
                             searchList: {0:__('待支付'), 100:__('待处理'), 200:__('成功'), 400:__('失败'), 500:__('取消')},