소스 검색

getpetuserwork

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

+ 1 - 0
www/protected/components/O2oApp.php

@@ -298,6 +298,7 @@ class O2oApp {
         $cursor = ROrder::model()->findAll($criteria);
 
         $rows = CommonFn::getRowsFromCursor($cursor);
+        var_dump($rows);
         $rows_new = array();
         foreach($rows as $key => $value){
             //判断是否为当前保洁师订单

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

@@ -9,8 +9,8 @@ class MyOrderController extends CController {
 
     public function actionIndex() {
         // 环境判断
-         //if (ENVIRONMENT == 'test') {
-        if (false) {
+         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');
             }