|
|
@@ -2172,14 +2172,17 @@ class Boss extends Start_Controller
|
|
|
for ($i = 1; $i < $n; $i++) {
|
|
|
$t = $j - ($n * 24 * 60 * 60) + ($i * 24 * 60 * 60);
|
|
|
|
|
|
- $where = "$time > '$t' and $time < '" . ($t + 24 * 3600) . "' and shop = '" . $val['id'] . "'";
|
|
|
- if($source == '2d'){
|
|
|
- $where.= " and source > 2 ";
|
|
|
- }
|
|
|
- if($source == '1'){
|
|
|
- $where.= " and source = 1 ";
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
foreach ($shop as $val) {
|
|
|
+ $where = "";
|
|
|
+ $where = "$time > '$t' and $time < '" . ($t + 24 * 3600) . "' and shop = '" . $val['id'] . "'";
|
|
|
+ if($source == '2d'){
|
|
|
+ $where.= " and source > 2 ";
|
|
|
+ }
|
|
|
+ if($source == '1'){
|
|
|
+ $where.= " and source = 1 ";
|
|
|
+ }
|
|
|
if($val['type'] == 269){
|
|
|
$data = $this->fullorder->find_all($where);
|
|
|
$dd = 0;
|