|
@@ -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) {
|