|
@@ -411,7 +411,7 @@ class BookTest extends Command
|
|
|
private function transfromUserOrder(){
|
|
|
$user = DB::table('users')
|
|
|
->where('distribution_channel_id',4815)
|
|
|
- ->where('created_at','>=','2019-01-31 11:12:00')
|
|
|
+ ->where('created_at','>=','2019-01-31 15:00:00')
|
|
|
->select('openid','id')
|
|
|
->get();
|
|
|
$chapter_model = new ChapterOrder();
|
|
@@ -425,6 +425,9 @@ class BookTest extends Command
|
|
|
->first();
|
|
|
Log::info('$froce_user user is :');
|
|
|
Log::info('$froce_user is: '.$froce_user->uid);
|
|
|
+ if(!$froce_user){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
if($froce_user && $froce_user->uid != $v->id){
|
|
|
$chapter_model->setCurrentTable($froce_user->uid);
|
|
|
$data = [];
|