|
@@ -32,7 +32,10 @@ class SyncMjWarehouse extends Command {
|
32
|
32
|
{
|
33
|
33
|
try {
|
34
|
34
|
$this->SyncMjWarehouse();
|
35
|
|
-// $this->diffRealPriceSkuListArr = array('banjiexia-03','csxpxx-01');
|
|
35
|
+// $this->diffRealPriceSkuListArr = array(
|
|
36
|
+// 0=>array('code'=>'banjiexia-03','oldPrice'=>'10','newPrice'=>'20'),
|
|
37
|
+// 1=>array('code'=>'csxpxx-01','oldPrice'=>'100','newPrice'=>'50'),
|
|
38
|
+// );
|
36
|
39
|
if (count($this->diffRealPriceSkuListArr) > 0) {
|
37
|
40
|
$this->skuRealPriceMonitor();
|
38
|
41
|
}
|
|
@@ -102,7 +105,10 @@ class SyncMjWarehouse extends Command {
|
102
|
105
|
if($oldRealPrice != 0){
|
103
|
106
|
$result = $this->getNumberDiffAbs($newRealPrice,$oldRealPrice);
|
104
|
107
|
if($result >= 0.1){
|
105
|
|
- $this->diffRealPriceSkuListArr[] = $code;
|
|
108
|
+ $json['code'] = $code;
|
|
109
|
+ $json['oldPrice'] = $oldRealPrice;
|
|
110
|
+ $json['newPrice'] = $newRealPrice;
|
|
111
|
+ $this->diffRealPriceSkuListArr[] = $json;
|
106
|
112
|
}
|
107
|
113
|
}
|
108
|
114
|
}
|
|
@@ -129,7 +135,7 @@ class SyncMjWarehouse extends Command {
|
129
|
135
|
#发送验证码报警
|
130
|
136
|
$this->sendMsg('13161864516',$text);
|
131
|
137
|
$this->sendMsg('18410900527',$text);
|
132
|
|
- error_log(date('Y-m-d H:i:s',time()).' skuList:'.$text." \n ",3,"/log/seafood_log/script_success/".date('Y-m-d',time()).'MonitorRealPrice.log');
|
|
138
|
+// error_log(date('Y-m-d H:i:s',time()).' skuList:'.$text." \n ",3,"/log/seafood_log/script_success/".date('Y-m-d',time()).'MonitorRealPrice.log');
|
133
|
139
|
|
134
|
140
|
}
|
135
|
141
|
|