|
@@ -1,30 +1,17 @@
|
|
<?php
|
|
<?php
|
|
/**
|
|
/**
|
|
* Author: luzheng.liu
|
|
* Author: luzheng.liu
|
|
- * Time: 2020/12/5 17:15
|
|
|
|
|
|
+ * Time: 2020/12/5 17:55
|
|
*/
|
|
*/
|
|
|
|
|
|
-namespace app\api\controller;
|
|
|
|
|
|
+namespace app\index\controller;
|
|
|
|
|
|
|
|
|
|
-use app\api\BaseController;
|
|
|
|
use app\common\service\CommonService;
|
|
use app\common\service\CommonService;
|
|
|
|
|
|
-class User extends BaseController {
|
|
|
|
|
|
+class Index {
|
|
|
|
|
|
- public function login() {
|
|
|
|
- $params = [
|
|
|
|
- 'id' => CommonService::getChannelId(),
|
|
|
|
- 'userid' => input('unionid'),
|
|
|
|
- 'name' => input('nickName'),
|
|
|
|
- 'avatar' => input('avatar'),
|
|
|
|
- 'key' => md5(input('userid').CommonService::getAuthKey())
|
|
|
|
- ];
|
|
|
|
- session('unionid', input('unionid'));
|
|
|
|
- header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public function checkLogin() {
|
|
|
|
|
|
+ public function index() {
|
|
$visitorId = input('visitorId');
|
|
$visitorId = input('visitorId');
|
|
$notifyUrl = input('notify_url');
|
|
$notifyUrl = input('notify_url');
|
|
if (empty(session('unionid'))){
|
|
if (empty(session('unionid'))){
|