Commit ebda8e74 by lzzzzl

测试

parent e0fe5db2
Showing with 4 additions and 0 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;
......
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