DengTao 8 년 전
부모
커밋
6d33439683
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      www/protected/modules/o2o/controllers/MyOrderController.php

+ 2 - 2
www/protected/modules/o2o/controllers/MyOrderController.php

@@ -9,7 +9,7 @@ class MyOrderController extends CController {
 
     public function actionIndex() {
         // 环境判断
-         if (ENVIRONMENT == 'product') {
+         if (ENVIRONMENT == 'test') {
         //if (false) {
             if (isset($_COOKIE['weixin_userid']) && isset($_COOKIE['weixin_userid_signature'])) {
                 $signature = md5($_COOKIE['weixin_userid'].'wozhua=9527');
@@ -20,7 +20,7 @@ class MyOrderController extends CController {
                     $this->render('error', ['msg' => '未查询到用户']);die;
                 }
             } else {
-                $reditect = "api.yiguanjia.me/index.php?r=o2o/myOrder/checkUserid";
+                $reditect = "apitest.yiguanjia.me/index.php?r=o2o/myOrder/checkUserid";
                 $reditect = urlencode($reditect);
                 $this->redirect('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx08ddb347281baf39&redirect_uri='.$reditect.'&response_type=code&scope=snsapi_base&state=5e2b4706179f774e94903e1213d2222e#wechat_redirect');
             }