lizhen_gitee 10 månader sedan
förälder
incheckning
e92dd84d1d

+ 1 - 1
application/api/controller/Index.php

@@ -22,7 +22,7 @@ class Index extends Api
         exit;
     }
 
-    //推荐/附近/新人
+    //首页。推荐/附近/新人。三个用户列表
     public function nearuser()
     {
 //        if(empty($this->auth->longitude) || empty($this->auth->latitude)){

+ 11 - 0
application/index/controller/Plantask.php

@@ -96,6 +96,7 @@ class Plantask extends Controller
     //计划任务
     //定时跑用户活跃,改成离线
     public function user_active(){
+        exit;
         $start_time = time() - (3600 * 27);
         $end_time = time() - (3600 * 5);
 
@@ -108,10 +109,20 @@ class Plantask extends Controller
         
         return 1;
     }
+
+    //定时跑用户活跃,改成离线
+    public function auto_user_active(){
+        $actitime = time() - 300;
+
+        $sql = 'update `mt_user` set is_active = 0 where is_active = 1 and id in (select user_id from mt_user_active where requesttime < '.$actitime.')';
+        db()->query($sql);
+    }
+
     //计划任务
     //代替公会的人10秒内发出五句话
     public function firstuser_send()
     {
+        exit;
         //找出24小时内注册的男人
         $map = [
             'jointime' => ['gt',time()-86400],

+ 3 - 1
application/utils/JingXiu/JingXiuPayUtil.php

@@ -34,7 +34,9 @@ class JingXiuPayUtil extends Module
 
         $payment = [
             'wechat' => 'wechatLiteH5',
-            'alipay' => 'аlipаyApр',
+            'alipay' => 'alipayApp',
+//            'alipay' => 'alipaуWаp',
+//            'alipay' => 'alipayLite',
         ];
 
         try {