DengTao 8 years ago
parent
commit
c457954b3f

+ 2 - 1
www/protected/controllers/ROrderController.php

@@ -704,7 +704,8 @@ class ROrderController extends AdminController{
                                 array(
                                     'title' => '壹管家提示-新订单',
                                     'description' => $technician_obj->name . '你好!刚刚有一个新的订单被分配给你,请点击查看。',
-                                    'url' => $url_prefix . '/index.php?r=o2o/myOrder/info&order=' . $id . '&user=' . $technician_obj->_id,
+                                    //'url' => $url_prefix . '/index.php?r=o2o/myOrder/info&order=' . $id . '&user=' . $technician_obj->_id,
+                                    'url' => $url_prefix . '/index.php?r=o2o/myOrder/index'
                                 ),
                             ),
                         ),

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

@@ -9,7 +9,7 @@ class MyOrderController extends CController {
 
     public function actionIndex() {
         // 环境判断
-         if (ENVIRONMENT == 'test') {
+         if (ENVIRONMENT == 'product') {
         //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 = "apitest.yiguanjia.me/index.php?r=o2o/myOrder/checkUserid";
+                $reditect = "api.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');
             }

+ 1 - 1
www/protected/modules/o2o/controllers/ProductController.php

@@ -175,7 +175,7 @@ class  ProductController extends O2oBaseController{
                                     array(
                                         'title' => '壹管家提示-新评价',
                                         'description' => $technicianObj->name . '你好!你刚刚在壹管家O2O服务上收到了一条评分为' . $score . '分的订单评价,请点击查看。',
-                                        'url' => $url_prefix . '/index.php?r=o2o/myComment/info&order=' . $order_id . '&user=' . $technician,
+                                        'url' => $url_prefix . '/index.php?r=o2o/myComment/index',
                                     ),
                                 ),
                             ),