Commit e59ef6ff authored by zhz's avatar zhz

mall

parent 01669d9b
...@@ -35,9 +35,8 @@ class SaleOrderRedisModel extends \Redis\Db1\AbstractModel { ...@@ -35,9 +35,8 @@ class SaleOrderRedisModel extends \Redis\Db1\AbstractModel {
} }
return null; return null;
} }
public function tableDelAll($data){
return $this->delAll($data);
}
public function tableHSet($h,$key,$val,$experio=0){ public function tableHSet($h,$key,$val,$experio=0){
return $this->hset($this->calcKey($h),$key,$val,$experio); return $this->hset($this->calcKey($h),$key,$val,$experio);
...@@ -54,7 +53,15 @@ class SaleOrderRedisModel extends \Redis\Db1\AbstractModel { ...@@ -54,7 +53,15 @@ class SaleOrderRedisModel extends \Redis\Db1\AbstractModel {
public function tableHMGet($h,$keyvalues){ public function tableHMGet($h,$keyvalues){
return $this->hmget($this->calcKey($h),$keyvalues); return $this->hmget($this->calcKey($h),$keyvalues);
} }
public function tableDelAll($data){
return $this->delAll($data);
}
public function tableKeys($prekey){
return $this->keys($this->calcKey($prekey));
}
public function tableDel($key){
return $this->del($key);
}
public function tableCacheGet($id){ public function tableCacheGet($id){
$result = $this->get($this->calcKey($id)); $result = $this->get($this->calcKey($id));
return $result; return $result;
......
...@@ -57,7 +57,7 @@ class cliRecommend extends basecli ...@@ -57,7 +57,7 @@ class cliRecommend extends basecli
echo '****create dir fail ****'; echo '****create dir fail ****';
exit; exit;
} }
$this->lockFileName = $lockDir .'.locks'; $this->lockFileName = $lockDir .DS.'goodsRecommend.locks';
if( file_exists( $this->lockFileName ) ) if( file_exists( $this->lockFileName ) )
{ {
$stat = stat($this->lockFileName); $stat = stat($this->lockFileName);
......
...@@ -50,12 +50,12 @@ class cliOrderEvaluate extends basecli ...@@ -50,12 +50,12 @@ class cliOrderEvaluate extends basecli
echo "*** Debug mode ***\n"; echo "*** Debug mode ***\n";
} }
// Step: 02 检查是否已有相同CLI在运行中 // Step: 02 检查是否已有相同CLI在运行中
$lockDir=$this->_getBaseFileName('orderConfirm'); $lockDir=$this->_getBaseFileName('orderEvaluate');
if(!$this->mkdirs($lockDir)){ if(!$this->mkdirs($lockDir)){
echo '****create dir fail ****'; echo '****create dir fail ****';
exit; exit;
} }
$this->lockFileName = $lockDir . '/orderType_'. $this->orderType.'_orderResult_'.$this->orderResult. '.locks'; $this->lockFileName = $lockDir .DS. 'orderEvaluate.locks';
if( file_exists( $this->lockFileName ) ) if( file_exists( $this->lockFileName ) )
{ {
$stat = stat($this->lockFileName); $stat = stat($this->lockFileName);
......
...@@ -55,7 +55,7 @@ class cliSaleOrder extends basecli ...@@ -55,7 +55,7 @@ class cliSaleOrder extends basecli
echo '****create dir fail ****'; echo '****create dir fail ****';
exit; exit;
} }
$this->lockFileName = $lockDir .'orderSaleGoods.locks'; $this->lockFileName = $lockDir .DS.'orderSaleGoods.locks';
if( file_exists( $this->lockFileName ) ) if( file_exists( $this->lockFileName ) )
{ {
$stat = stat($this->lockFileName); $stat = stat($this->lockFileName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment