shish пре 6 година
родитељ
комит
a704fc7207
2 измењених фајлова са 7 додато и 4 уклоњено
  1. 0 3
      app/mobile/controllers/MainController.php
  2. 7 1
      app/mobile/views/main/index.php

+ 0 - 3
app/mobile/controllers/MainController.php

@@ -12,9 +12,6 @@ class MainController extends PublicController{
 
 	public function actionIndex()
 	{
-		UserService::getById(1);
-		die;
-		echo token::create(1152);die;
 		$host = Yii::$app->request->getHostInfo();
 		return $this->renderPartial('index',['host'=>$host]);
 	}

+ 7 - 1
app/mobile/views/main/index.php

@@ -1,7 +1,13 @@
 <body>
 <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
+
+扫付款码出来的网址是这样的:
+<br />
+http://m.huaml.com/#main/index?account=12358&shopId=15680
+<br />
+其中 #main/index 可以自行定义 ,其它为固定格式,不能改变。
 <script>
-    var code = encodeURIComponent('#main/index?account=12358');
+    var code = encodeURIComponent('#main/index?account=12358&shopId=15680');
     window.location='<?= $host ?>/auth/prepare?suffixUrl='+code+'&authScope=snsapi_base&account=12358';
 
     /*