|
|
@@ -11,7 +11,7 @@ use common\services\xhMerchantService;
|
|
|
|
|
|
class MerchantController extends BaseController
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
public $withoutLogin = ['bind-open'];
|
|
|
|
|
|
//商家列表 shish 2019.12.20
|
|
|
@@ -21,7 +21,7 @@ class MerchantController extends BaseController
|
|
|
$list = MerchantService::getSaasMerchant($where);
|
|
|
util::success($list);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取当前登陆老板的帐号详情,官网购买套餐时使用 shish 2020.1.11
|
|
|
public function actionLoginAccount()
|
|
|
{
|
|
|
@@ -83,7 +83,7 @@ class MerchantController extends BaseController
|
|
|
echo "小程序绑定情况:<br />";
|
|
|
print_r($return);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//设置小程序服务器域名
|
|
|
if ($id == 4) {
|
|
|
wxUtil::setDomain($merchant);
|
|
|
@@ -92,10 +92,11 @@ class MerchantController extends BaseController
|
|
|
|
|
|
//为授权的小程序帐号上传小程序代码
|
|
|
if ($id == 5) {
|
|
|
- $tId = $_GET['tId'];
|
|
|
+ //模板id
|
|
|
+ $tId = Yii::$app->request->get('tId');
|
|
|
wxUtil::miniCommit($merchant, $tId);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取小程序体验码
|
|
|
if ($id == 6) {
|
|
|
wxUtil::getExperienceQrCode($merchant);
|
|
|
@@ -186,5 +187,5 @@ class MerchantController extends BaseController
|
|
|
echo "<br />小程序appId:{$miniAppId}<br />";
|
|
|
print_r($return);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|