rabin 1 rok temu
rodzic
commit
1d22c84f18
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8 2
      database/yspay_cash.php

+ 8 - 2
database/yspay_cash.php

@@ -17,7 +17,13 @@ $button = array();
 
 $merchant_id = Dever::input('search_option_merchant_id');
 $account_id = Dever::input('search_option_account_id');
-
+$oper_table = Dever::input('oper_table');
+$oper_project = Dever::input('oper_project');
+if ($oper_project) {
+    $top = $oper_project . '/' . $oper_table . '.';
+} else {
+    $top = 'account.';
+}
 $info = '';
 
 if ($merchant_id) {
@@ -30,7 +36,7 @@ if ($merchant_id) {
         );
     }
 
-    $button['账户日志'] = array('location', 'l=project/database/list&project=pay&table=yspay_merchant_log&search_option_state=1&search_option_account_id=' . $account_id . '&search_option_merchant_id=' . $merchant_id . '&parent=account.yspay_merchant.yspay_cash');
+    $button['账户日志'] = array('location', 'l=project/database/list&project=pay&table=yspay_merchant_log&search_option_state=1&search_option_account_id=' . $account_id . '&search_option_merchant_id=' . $merchant_id . '&parent='.$top.'yspay_merchant.yspay_cash');
 }
 
 return array