rabin 2 years ago
parent
commit
73d6a13d43
1 changed files with 8 additions and 5 deletions
  1. 8 5
      database/yspay_cash.php

+ 8 - 5
database/yspay_cash.php

@@ -9,11 +9,14 @@ $status = array
     5 => '已提现',
     6 => '提现失败',
 );
+$button = array();
 
-$button = array
-(
-    '资金划付' => array('oper', 'pay/yspay/cash.huafu_commit?account_id=' . Dever::input('search_option_account_id') . '&merchant_id=' . Dever::input('search_option_merchant_id')),
-);
+if (Dever::load('manage/auth')->checkFunc('pay.account', 'huafu', '资金划付')) {
+    $button = array
+    (
+        '资金划付' => array('oper', 'pay/yspay/cash.huafu_commit?account_id=' . Dever::input('search_option_account_id') . '&merchant_id=' . Dever::input('search_option_merchant_id')),
+    );
+}
 return array
 (
     # 表名
@@ -210,7 +213,7 @@ return array
         'edit' => false,
         'insert' => false,
         'delete' => false,
-        //'button' => $button,
+        'button' => $button,
     ),
 
     'request' => array