|
@@ -14,7 +14,7 @@ use app\common\library\Token;
|
|
|
*/
|
|
|
class Index extends Api
|
|
|
{
|
|
|
- protected $noNeedLogin = ['zhiyint_registration','index','contactus','tcpTest','getAppShare','getWebsiteInfo','getUserCharmRankList','getPartyHotList','searchUsers','getInviteCode','getEdition','getInviteImg','getWebsiteInfoForMini','getBankList','getSwitch','getBootAnimation', 'tencentcall', 'getversion','getversionZx', 'getiosversion'];
|
|
|
+ protected $noNeedLogin = ['zhiyint_registration','index','contactus','tcpTest','getAppShare','getWebsiteInfo','getUserCharmRankList','getPartyHotList','searchUsers','getInviteCode','getEdition','getInviteImg','getWebsiteInfoForMini','getBankList','getSwitch','getBootAnimation', 'tencentcall', 'getversion', 'getversionZx', 'getiosversion'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
public function index(){
|
|
@@ -63,12 +63,14 @@ class Index extends Api
|
|
|
echo json_encode(['error' => "IP not found"]); exit;
|
|
|
}
|
|
|
$UserId = $this->request->request("UserId",'');
|
|
|
+ $data = json_decode(file_get_contents('php://input'), true);
|
|
|
+ $UserId = $data['UserId'];
|
|
|
if($UserId)
|
|
|
{
|
|
|
- $times = Db::name("user")->where("id",$UserId)->value("createtime");
|
|
|
+ $times = Db::name("user")->where("username",$UserId)->value("createtime");
|
|
|
if(!$times)
|
|
|
{
|
|
|
- echo json_encode(['error' => "User ID not found"]);
|
|
|
+ echo json_encode(['error' => "User ID not found"]); exit;
|
|
|
}
|
|
|
$data = [
|
|
|
'RegistrationTime' => date("Y-m-d H:i:s",$times)
|
|
@@ -80,6 +82,7 @@ class Index extends Api
|
|
|
];
|
|
|
echo json_encode($data);
|
|
|
}
|
|
|
+
|
|
|
// /**
|
|
|
// * 生成不重复的随机数字字母组合
|
|
|
// */
|
|
@@ -585,9 +588,11 @@ class Index extends Api
|
|
|
$order = 'user.is_active desc, user.active_time desc';
|
|
|
if (in_array($type,[0,1])) {
|
|
|
if ($this->auth->gender == 1) {
|
|
|
- $order = 'user.is_active desc, user.active_time desc, uw.get_money desc';
|
|
|
+ //$order = 'user.is_active desc, user.active_time desc, uw.get_money desc';
|
|
|
+ $order = 'user.is_active desc, user.active_time desc';
|
|
|
} else {
|
|
|
- $order = 'user.is_active desc, user.active_time desc, uw.pay_money desc';
|
|
|
+ //$order = 'user.is_active desc, user.active_time desc, uw.pay_money desc';
|
|
|
+ $order = 'user.is_active desc, user.active_time desc';
|
|
|
}
|
|
|
}
|
|
|
if ($type == 0) {
|
|
@@ -644,7 +649,7 @@ class Index extends Api
|
|
|
|
|
|
//$list = Db::name('user')->alias('user')->field($field)->where($map)->order($order)->autopage()->select();
|
|
|
$list = Db::name('user')->alias('user')->field($field)
|
|
|
- ->join('user_wallet uw','uw.user_id = user.id','LEFT')
|
|
|
+ // ->join('user_wallet uw','uw.user_id = user.id','LEFT')
|
|
|
->where($map)->order($order)->autopage()->select();
|
|
|
//dump($list);exit;
|
|
|
|
|
@@ -803,10 +808,10 @@ class Index extends Api
|
|
|
'user_to_id' => $other_uid,
|
|
|
];
|
|
|
// 取消限制 2023年12月14日 18点47分
|
|
|
-// $check = Db::name('user_greet')->where($map)->find();
|
|
|
-// if($check){
|
|
|
-// $this->error('已经打过招呼了');
|
|
|
-// }
|
|
|
+ // $check = Db::name('user_greet')->where($map)->find();
|
|
|
+ // if($check){
|
|
|
+ // $this->error('已经打过招呼了');
|
|
|
+ // }
|
|
|
|
|
|
$map['createtime'] = time();
|
|
|
|
|
@@ -836,7 +841,7 @@ class Index extends Api
|
|
|
|
|
|
$this->success('操作成功', $gift_greet);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//女号私信异性完成任务
|
|
|
public function girlchattask() {
|
|
|
if ($this->auth->gender != 0) { //只有女生可以
|
|
@@ -921,7 +926,7 @@ class Index extends Api
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//头条
|
|
|
public function headlines() {
|
|
|
$time = strtotime(date('Y-m-d', time()));
|
|
@@ -967,7 +972,7 @@ class Index extends Api
|
|
|
|
|
|
$this->success('success', $data);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 男性打招呼内容
|
|
|
* @return void
|
|
@@ -1010,7 +1015,7 @@ class Index extends Api
|
|
|
|
|
|
$this->success('Success', $data);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 获取版本更新信息(知心app)
|
|
|
public function getversionZx() {
|
|
|
// 获取二维码
|