Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
e42cf04a
Commit
e42cf04a
authored
Aug 27, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
53805da0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
GoodsCommonStorage.php
application/models/DAO/Storage/GoodsCommonStorage.php
+6
-4
No files found.
application/models/DAO/Storage/GoodsCommonStorage.php
View file @
e42cf04a
...
@@ -85,19 +85,21 @@ class GoodsCommonStorageModel extends \DAO\AbstractModel {
...
@@ -85,19 +85,21 @@ class GoodsCommonStorageModel extends \DAO\AbstractModel {
$catName
=
$oneVal
.
$twoVal
.
$threeVal
.
$fourVal
.
$fiveVal
;
$catName
=
$oneVal
.
$twoVal
.
$threeVal
.
$fourVal
.
$fiveVal
;
$resultIndex
=
array_rand
(
$res
);
$resultIndex
=
array_rand
(
$res
);
$re
=
$res
[
$resultIndex
];
$re
=
$res
[
$resultIndex
];
$re
[
'goods_commonid'
]
=
500000
+
(
int
)
$diffKey
;
$re
[
'goods_commonid'
]
=
500000
0
+
(
int
)
$diffKey
;
$re
[
'goods_name'
]
=
$catName
;
$re
[
'goods_name'
]
=
$catName
;
$re
[
'goods_jingle'
]
=
$catName
;
$re
[
'goods_jingle'
]
=
$catName
;
$re
[
'gc_name'
]
=
'学习辅导课程'
;
$re
[
'gc_name'
]
=
'学习辅导课程'
;
$re
[
'store_id'
]
=
117
;
$re
[
'store_id'
]
=
117
;
$re
[
'store_name'
]
=
'
文创园
'
;
$re
[
'store_name'
]
=
'
testlyz1的小店
'
;
$re
[
'goods_addtime'
]
=
TIMESTAMP
;
$re
[
'goods_addtime'
]
=
TIMESTAMP
;
$re
[
'gc_id'
]
=
1152
;
$re
[
'gc_id1'
]
=
1064
;
$re
[
'gc_id2'
]
=
1081
;
$re
[
'gc_id3'
]
=
1152
;
$this
->
db
->
insert
(
$this
->
_tableName
)
->
rows
(
$re
)
->
execute
();
$this
->
db
->
insert
(
$this
->
_tableName
)
->
rows
(
$re
)
->
execute
();
$goodsStorage
->
addOne
(
$re
);
$goodsStorage
->
addOne
(
$re
);
}
}
}
}
}
}
...
...
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