作者 王智

baoxiu

... ... @@ -95,7 +95,7 @@ class Index extends Api
}
if ($user['level'] == 5) {
$bool = $this->time();
if ($bool == true) {
if ($bool == 1) {
$today = strtotime(date('Y-m-d', time()));
$is_p = Db::name('month_talk')->where('user_id', $user)->where('createtime', 'GT', $today)->find();
if (empty($is_p)) {
... ... @@ -103,7 +103,7 @@ class Index extends Api
} else {
$bools = false;
}
}else{
} else {
$bools = false;
}
} else {
... ... @@ -853,7 +853,7 @@ class Index extends Api
'taidu_star' => $param['taidu_star'],
'talk_num' => $param['talk_num'],
'talk_con' => $param['talk_con'],
'user_id'=>$user_id
'user_id' => $user_id
];
$res = Db::name('month_talk')->insert($data);
if ($res) {
... ...
... ... @@ -368,10 +368,10 @@ class Api
$today = date("Y-m-d");
$day = getthemonth($today);
if ($day[0] == $day[1]) {
echo 1;
return 1;
} else {
// return False;
echo 2;
return 2;
}
}
}
... ...