From 1b60ba1e131c5915470a85f0d824d832ef4a4142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Thu, 14 Feb 2019 19:28:09 +0800 Subject: [PATCH] Update Auth.php --- src/Auth.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index c2576ff..7eee4c5 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -84,18 +84,18 @@ class Auth break; case 'ds': case 'ds-api': - $this->id = $this->config['apps']['erp']['id']; - $this->secret = $this->config['apps']['erp']['secret']; + $this->id = $this->config['apps']['ds']['id']; + $this->secret = $this->config['apps']['ds']['secret']; break; case 'crm': case 'crm-api': - $this->id = $this->config['apps']['erp']['id']; - $this->secret = $this->config['apps']['erp']['secret']; + $this->id = $this->config['apps']['crm']['id']; + $this->secret = $this->config['apps']['crm']['secret']; break; case 'op': case 'op-api': - $this->id = $this->config['apps']['erp']['id']; - $this->secret = $this->config['apps']['erp']['secret']; + $this->id = $this->config['apps']['op']['id']; + $this->secret = $this->config['apps']['op']['secret']; break; } return $this;