rabin 6 months ago
parent
commit
ae1d9cba56
2 changed files with 3 additions and 3 deletions
  1. 2 2
      lib/Account.php
  2. 1 1
      table/account_cert.php

+ 2 - 2
lib/Account.php

@@ -19,7 +19,7 @@ class Account
         return $data;
     }
 
-    public function run($account, $func, $param = array(), $env = 1, $method = 'run')
+    public function run($account, $func, $param = array(), $env = 1, $method = 'run', $project = 'api')
     {
         if (!is_array($account)) {
             $account = Dever::db('account', 'api')->find(array('key' => $account));
@@ -37,7 +37,7 @@ class Account
         if (!$api) {
             Dever::error('接口无效');
         }
-        $param['account_project'] = 'api';
+        $param['account_project'] = $project;
         $param['account_id'] = $account['id'];
         $result = array();
         if ($func['type'] == 1) {

+ 1 - 1
table/account_cert.php

@@ -3,7 +3,7 @@
 return array
 (
     'name' => '账户证书设置',
-    'order' => 'id asc',
+    'order' => 'edate desc, id asc',
     'struct' => array
     (
         'account_id'        => array