Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
liexin_scm_service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ebda8e74
authored
May 18, 2020
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
测试
parent
e0fe5db2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
app/Http/Model/GoodsModel.php
app/Http/Model/GoodsModel.php
View file @
ebda8e74
...
...
@@ -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
;
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment