Commit ebda8e74 by lzzzzl

测试

parent e0fe5db2
Showing with 6 additions and 2 deletions
......@@ -9,6 +9,7 @@ use DB;
use RedisDB;
use Request;
use ScmWmsCommon\SnModel;
use Log;
class GoodsModel extends Model
{
......@@ -77,7 +78,10 @@ class GoodsModel extends Model
$brand_id = $brand_exist->brand_id;
}
$arr['brand_id'] = $brand_id;
$start = microtime();
$arr['goods_sn'] = (new SnModel())->sn("goods_sn");
$end = microtime();
Log::error($end - $start);
// 判断goods_sn,没有正常生成,则退出
if (empty($arr['goods_sn']))
return false;
......@@ -93,13 +97,13 @@ class GoodsModel extends Model
// 缓存品牌id->品牌信息
// $this->brandId2BrandInfo($brand_id,json_encode($brand_params));
}
// ERPID GOODSID REDIS
$this->erpId2GoodsId($erp_id,$goods_id);
// GOODSID GOODS REDIS
// $this->goodsId2Goods($goods_id,json_encode($arr));
return true;
});
......
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 sign in to comment