zz il y a 3 ans
Parent
commit
353e338963
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/Console/Commands/Wechat/ReportRetry.php

+ 2 - 1
app/Console/Commands/Wechat/ReportRetry.php

@@ -113,7 +113,8 @@ class ReportRetry extends Command
                 $result['updated_at'] = date('Y-m-d H:i:s');
                 DB::table('wechat_advertise_report_record')->where('id',$item->id)->update($result);
 
-                DB::connection('api_mysql')->table('distribution_channel_weixin_ad_report_orders')->where('order_id',$item->product_id)
+                DB::connection('api_mysql')->table('distribution_channel_weixin_report_orders')->where('order_id',$item->product_id)
+                    ->where('type','WECHAT')
                     ->update(['report_status'=>1]);
             }
         }