Charlie vor 9 Jahren
Ursprung
Commit
7e7f62c937

+ 1 - 1
www/protected/config/main.php

@@ -1,7 +1,7 @@
 <?php
 // This is the main Web application configuration. Any writable
 // CWebApplication properties can be configured here.
-include('WoZhua_Const.php');
+include('yiguanjia_const.php');
 return array(
     'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
     'name'=>'壹管家',

+ 0 - 68
www/protected/config/o2o_open_const.php

@@ -1,68 +0,0 @@
-<?php 
-/**
- * 自定义参数配置文件,保存o2o开放平台相关参数
- * 定义方式  $open['index'] = value;
- * 调用方法  Yii::app()->params[index];
- */
-$env = @file_get_contents(__DIR__.DIRECTORY_SEPARATOR."env.txt");
-if (trim($env) == 'develop') {
-    // 葡萄生活配置项
-    $open['putao'] = array(
-        'ak' => 'caa5f0a1c94d62adba204206e682aae863afb03a',
-        'sk' => '47a0e25f8bf1d07294e4420c72f0ad44',
-        'api_url' => 'http://open.test.putao.so/v1/api/order_status/modify?'
-    );
-    // 触宝生活黄页配置项
-    $open['chubao'] = array(
-        'connectUrl'        => 'http://test.open.cootekservice.com:15080',
-        'appkey'            => '7168244618702012',
-        'appsecret'         => 'b453fcf0789747f1b364560a6c47867b',
-        'sellerId'          => '4724949025612153',
-        'prvKeyPath'        => 'wozhuachongwu_rsa_private_key_test.pem',
-        'pubKeyPath'        => 'touchlife_rsa_public_key_test.pem',
-        'service'           => 'com.wozhua.o2o',
-        'orderUrl'          => 'http://wwwtest.wozhua.mobi/o2o/web/index#OrderDetail',
-        'payCallbackUrl'    => 'http://apitest.wozhua.mobi/index.php?r=o2o/chubao/chubaoPayCallback',
-        'refundCallbackUrl' => 'http://apitest.wozhua.mobi/index.php?r=o2o/chubao/chubaoRefundCallback',
-    );
-} else if (trim($env) == 'test') {
-    // 葡萄生活配置项
-    $open['putao'] = array(
-        'ak' => 'caa5f0a1c94d62adba204206e682aae863afb03a',
-        'sk' => '47a0e25f8bf1d07294e4420c72f0ad44',
-        'api_url' => 'http://open.test.putao.so/v1/api/order_status/modify?'
-    );
-    // 触宝生活配置项
-    $open['chubao'] = array(
-        'connectUrl'        => 'http://test.open.cootekservice.com:15080',
-        'appkey'            => '7168244618702012',
-        'appsecret'         => 'b453fcf0789747f1b364560a6c47867b',
-        'sellerId'          => '4724949025612153',
-        'prvKeyPath'        => 'wozhuachongwu_rsa_private_key_test.pem',
-        'pubKeyPath'        => 'touchlife_rsa_public_key_test.pem',
-        'service'           => 'com.wozhua.o2o',
-        'orderUrl'          => 'http://wwwtest.wozhua.mobi/o2o/web/index#OrderDetail',
-        'payCallbackUrl'    => 'http://apitest.wozhua.mobi/index.php?r=o2o/chubao/chubaoPayCallback',
-        'refundCallbackUrl' => 'http://apitest.wozhua.mobi/index.php?r=o2o/chubao/chubaoRefundCallback',
-    );
-} else {
-    // 葡萄生活配置项
-    $open['putao'] = array(
-        'ak' => 'aefe47f814cac164682c368457693581f6e96182',
-        'sk' => '249349f848abaa6626d742c2f67354fb',
-        'api_url' => 'http://open.putao.so/v1/api/order_status/modify?'
-    );
-    // 触宝生活配置项
-    $open['chubao'] = array(
-        'connectUrl'        => 'http://open.cootekservice.com',
-        'appkey'            => '7168071009412968',
-        'appsecret'         => '8d6f516118e04ee4b64e4aa4371732b2',
-        'sellerId'          => '6011126952892534',
-        'prvKeyPath'        => 'wozhuachongwu_rsa_private_key.pem',
-        'pubKeyPath'        => 'touchlife_rsa_public_key.pem',
-        'service'           => 'com.wozhua.o2o',
-        'orderUrl'          => 'http://www.wozhua.mobi/o2o/web/index#OrderDetail',
-        'payCallbackUrl'    => 'http://api.wozhua.mobi/index.php?r=o2o/chubao/chubaoPayCallback',
-        'refundCallbackUrl' => 'http://api.wozhua.mobi/index.php?r=o2o/chubao/chubaoRefundCallback',
-    );
-}

+ 0 - 0
www/protected/config/WoZhua_Const.php → www/protected/config/yiguanjia_const.php