Commit 2ecb113a authored by wwccw0591's avatar wwccw0591

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw

parents b6de5403 a2651521
......@@ -63,15 +63,18 @@ class StoreServiceModel extends \Business\AbstractModel{
\Our\Log::getInstance()->write($param['key'].'无会员','/data/log/special');
$sess=\Yaf\Session::getInstance();
$scan_store_ids = $sess->get('scan_store_ids');
is_array($scan_store_ids) ? $scan_store_ids = $scan_store_ids : $scan_store_ids = array();
$scan_store_ids[]= $storeId;
$tempStoreIds = array_unique($scan_store_ids);
\Our\Log::getInstance()->write(json_encode($tempStoreIds,true),'/data/log/special');
foreach($tempStoreIds as $key=>$tempId){
$tempIds[$key] = $tempId;
if($scan_store_ids){
if(is_array($scan_store_ids)){//兼容历史数据,如果有历史数据
$scan_store_ids = implode(',',$scan_store_ids);
}
if(strpos(','.$scan_store_ids.',',','.$storeId.',')===false){
$scan_store_ids .= ','.$storeId;
}
}else{
$scan_store_ids = $storeId;
}
\Our\Log::getInstance()->write(json_encode($tempIds,true),'/data/log/special');
$sess['scan_store_ids'] = $tempIds;
\Our\Log::getInstance()->write($scan_store_ids.'无会员','/data/log/special');
$sess['scan_store_ids'] = $scan_store_ids;
if($param['sid']) {
$scan_sale_ids = $sess->get('scan_sale_ids');
is_array($scan_sale_ids) ? $scan_sale_ids = $scan_sale_ids : $scan_sale_ids = [];
......
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