| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- class Config{
-
- /**
- * 达达开发者app_key
- */
- public $app_key = 'dadaf2279d901a5ba40';
- /**
- * 达达开发者app_secret
- */
- public $app_secret = '828a03677a1c00a3a5b3c59209c4433d';
- /**
- * api版本
- */
- public $v = "1.0";
- /**
- * 数据格式
- */
- public $format = "json";
- /**
- * 商户ID
- */
- public $source_id;
- /**
- * host
- */
- public $host;
- /**
- * 构造函数
- */
- public function __construct($source_id, $online){
- if ($online) {
- $this->source_id = $source_id;
- $this->host = "https://newopen.imdada.cn";
- } else {
- $this->source_id = "73753";
- $this->host = "http://newopen.qa.imdada.cn";
- }
- }
- public function getAppKey(){
- return $this->app_key;
- }
- public function getAppSecret(){
- return $this->app_secret;
- }
- public function getV(){
- return $this->v;
- }
- public function getFormat(){
- return $this->format;
- }
- public function getSourceId(){
- return $this->source_id;
- }
- public function getHost(){
- return $this->host;
- }
- }
|