소스 검색

模板消息补充

shish 6 년 전
부모
커밋
60334140cc
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      console/controllers/InitController.php

+ 4 - 5
console/controllers/InitController.php

@@ -54,11 +54,10 @@ class InitController extends Controller
 	{
 		echo 'ok';
 	}
-	
-	//接入一个商家需要的操作 shish 2019.9.7 yii init/join-one
-	public function actionJoinOne()
+
+	//接入一个商家需要的操作 shish 2019.9.7 yii init/join-one 12358
+	public function actionJoinOne($id)
 	{
-		$id = 12360;
 		//初始化微信菜单
 		$merchant = xhMerchantService::getById($id);
 		//xhWxMenuService::applyInit($merchant);
@@ -66,7 +65,7 @@ class InitController extends Controller
 		$r = xhTMessageService::supplement($merchant);
 		print_r($r);
 	}
-	
+
 	//yii init/sub
 	public function actionSub()
 	{