|
@@ -9,7 +9,7 @@ class MyOrderController extends CController {
|
|
|
|
|
|
public function actionIndex() {
|
|
public function actionIndex() {
|
|
// 环境判断
|
|
// 环境判断
|
|
- if (ENVIRONMENT == 'test') {
|
|
|
|
|
|
+ if (ENVIRONMENT == 'product') {
|
|
//if (false) {
|
|
//if (false) {
|
|
if (isset($_COOKIE['weixin_userid']) && isset($_COOKIE['weixin_userid_signature'])) {
|
|
if (isset($_COOKIE['weixin_userid']) && isset($_COOKIE['weixin_userid_signature'])) {
|
|
$signature = md5($_COOKIE['weixin_userid'].'wozhua=9527');
|
|
$signature = md5($_COOKIE['weixin_userid'].'wozhua=9527');
|
|
@@ -24,7 +24,7 @@ class MyOrderController extends CController {
|
|
} else {
|
|
} else {
|
|
$userid = Yii::app()->request->getParam('weixin_userid', '');
|
|
$userid = Yii::app()->request->getParam('weixin_userid', '');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ var_dump($userid);
|
|
$tech = TechInfo::getByUserid($userid);
|
|
$tech = TechInfo::getByUserid($userid);
|
|
if (!$tech) {
|
|
if (!$tech) {
|
|
$this->render('error', ['msg' => '未查询到用户']);die;
|
|
$this->render('error', ['msg' => '未查询到用户']);die;
|