...
|
...
|
@@ -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) {
|
...
|
...
|
|