This commit is contained in:
候学杰 2018-03-12 19:40:30 +08:00
parent 9011edad3f
commit b21c0c605f

View File

@ -9,6 +9,11 @@ use Illuminate\Support\Str;
class InternalApi class InternalApi
{ {
public function __construct()
{
app()->configure('internal_api');
}
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
@ -54,8 +59,7 @@ class InternalApi
protected function sign($params) protected function sign($params)
{ {
$app = $params['appid']; $key = config('internal_api.server.' . $params['appid']);
$key = config('internal_api.server.' . $app);
unset($params['sign']); unset($params['sign']);
ksort($params); ksort($params);
$str = http_build_query($params, null, '&'); $str = http_build_query($params, null, '&');