|
@@ -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 = "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');
|
|
|
}
|