|
@@ -58,14 +58,15 @@ class Aac extends Start_Controller {
|
|
}
|
|
}
|
|
|
|
|
|
public function tj(){
|
|
public function tj(){
|
|
|
|
+ echo "<pre>";
|
|
$info = $this->zzrecord_logs->read(1);
|
|
$info = $this->zzrecord_logs->read(1);
|
|
if($info['sku'] == 1){
|
|
if($info['sku'] == 1){
|
|
return ;
|
|
return ;
|
|
}
|
|
}
|
|
$qty = $info['qty'];
|
|
$qty = $info['qty'];
|
|
$start = (int)$info['number'];
|
|
$start = (int)$info['number'];
|
|
- $pre_num = 100;
|
|
|
|
- $list = $this->fullorder->find_all(" 1 = 1 ","*",'id asc',$start,$pre_num);
|
|
|
|
|
|
+ $pre_num = 300000;
|
|
|
|
+ $list = $this->fullorder->find_all(" shop in (1,2,3,4,5,6) ","*",'id asc',$start,$pre_num);
|
|
if(empty($list)){
|
|
if(empty($list)){
|
|
$this->zzrecord_logs->save([
|
|
$this->zzrecord_logs->save([
|
|
'sku'=>1,
|
|
'sku'=>1,
|
|
@@ -74,6 +75,7 @@ class Aac extends Start_Controller {
|
|
}
|
|
}
|
|
$tmp_num = 0;
|
|
$tmp_num = 0;
|
|
foreach($list as $k=>$v){
|
|
foreach($list as $k=>$v){
|
|
|
|
+ // var_dump($v);
|
|
$tmp_q = 0;
|
|
$tmp_q = 0;
|
|
$v['issku'] = strtolower($v['issku']);
|
|
$v['issku'] = strtolower($v['issku']);
|
|
if(stripos($v['issku'],',') !== false){
|
|
if(stripos($v['issku'],',') !== false){
|
|
@@ -92,20 +94,20 @@ class Aac extends Start_Controller {
|
|
}else{
|
|
}else{
|
|
|
|
|
|
if(isset($quantity[$index])){
|
|
if(isset($quantity[$index])){
|
|
- $tmp_q += $quantity[$index];
|
|
|
|
|
|
+ $tmp_q += (int)$quantity[$index];
|
|
}else{
|
|
}else{
|
|
$tmp_q += 1;
|
|
$tmp_q += 1;
|
|
}
|
|
}
|
|
- var_dump($tmp_q);
|
|
|
|
|
|
+ //var_dump($tmp_q);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- if($tmp_q >= 3){
|
|
|
|
|
|
+ if($tmp_q >= 4){
|
|
$tmp_num = $tmp_num+1;
|
|
$tmp_num = $tmp_num+1;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- //var_dump($tmp_num);
|
|
|
|
|
|
+ var_dump($tmp_num);
|
|
$qty = $qty*1 + $tmp_num;
|
|
$qty = $qty*1 + $tmp_num;
|
|
|
|
|
|
$this->zzrecord_logs->save([
|
|
$this->zzrecord_logs->save([
|