|
@@ -9,6 +9,7 @@ class MyOrderController extends CController {
|
|
|
|
|
|
public function actionIndex() {
|
|
|
// 环境判断
|
|
|
+ var_dump(ENVIRONMENT);exit;
|
|
|
if (ENVIRONMENT == 'test') {
|
|
|
//if (false) {
|
|
|
if (isset($_COOKIE['weixin_userid']) && isset($_COOKIE['weixin_userid_signature'])) {
|
|
@@ -20,7 +21,7 @@ class MyOrderController extends CController {
|
|
|
}
|
|
|
} else {
|
|
|
echo "123";exit;
|
|
|
- $this->redirect('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxedb2ce71dfee8aa5&redirect_uri= api.yiguanjia.me%2Findex.php%3Fr%3Do2o%2FmyOrder%2FcheckUserid&response_type=code&scope=snsapi_base&state=5e2b4706179f774e94903e1213d2222e#wechat_redirect');
|
|
|
+ $this->redirect('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxedb2ce71dfee8aa5&redirect_uri= apitest.yiguanjia.me%2Findex.php%3Fr%3Do2o%2FmyOrder%2FcheckUserid&response_type=code&scope=snsapi_base&state=5e2b4706179f774e94903e1213d2222e#wechat_redirect');
|
|
|
}
|
|
|
} else {
|
|
|
$userid = Yii::app()->request->getParam('weixin_userid', '');
|