think-orm
This commit is contained in:
@@ -4,9 +4,9 @@ namespace app\api\model;
|
||||
|
||||
use app\common\library\DatabaseRoute;
|
||||
use app\common\model\Common;
|
||||
use ba\Random;
|
||||
use extend\ba\Random;
|
||||
use think\facade\Db;
|
||||
use think\facade\Log;
|
||||
use support\Log;
|
||||
use think\Model;
|
||||
|
||||
class Invite extends Model
|
||||
@@ -139,20 +139,20 @@ class Invite extends Model
|
||||
}
|
||||
// 下级user_id集合
|
||||
$junior_user_list = extract_user_ids($junior_list);
|
||||
Log::write('下级user_id集合'. json_encode($junior_user_list));
|
||||
Log::info('下级user_id集合'. json_encode($junior_user_list));
|
||||
$ach_select = DatabaseRoute::getDb('invite_achievement', $user['user_id'])
|
||||
->where('count', '>=', 3)
|
||||
->where(['user_id' => $user['user_id']])
|
||||
->whereIn('target_user_id', $junior_user_list)
|
||||
->select()
|
||||
->toArray();
|
||||
Log::write('签到集合'. json_encode($ach_select));
|
||||
Log::info('签到集合'. json_encode($ach_select));
|
||||
foreach ($ach_select as $k => &$v) {
|
||||
$v['user_id'] = (string) $v['user_id'];
|
||||
}
|
||||
// 下级user_id集合
|
||||
$ach_user_list = extract_target_user_ids($ach_select);
|
||||
Log::write('签到user_id集合---'. json_encode($ach_user_list));
|
||||
Log::info('签到user_id集合---'. json_encode($ach_user_list));
|
||||
$commonInfoCount = CommonInfo::where(['type' => 913])->find()->value;
|
||||
$date = date('Y-m-d 00:00:00');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user