fix bug ErrorCode -1

This commit is contained in:
2020-10-20 11:32:50 +07:00
parent b5619f7a5f
commit 9719e836f8
3 changed files with 13 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ class common extends \yii\db\ActiveRecord {
}
public static function requestToCardService($path, $data) {
return file_get_contents("http://192.168.2.119:2001" . $path, false, stream_context_create([
return file_get_contents("http://" . Yii::$app->params["CardService"] . $path, false, stream_context_create([
'http' => [
'header' => "Content-Type: application/json",
'method' => "POST",