|
@@ -10,14 +10,9 @@ class Qc extends Base {
|
|
|
|
|
|
public function index()
|
|
|
{
|
|
|
- $all_goods = Db::table('store_goods')->select();
|
|
|
- foreach ($all_goods as $goods_info){
|
|
|
- $last_award = json_decode($goods_info['last_award'],true);
|
|
|
- foreach ($last_award as &$lv){
|
|
|
- if(!isset($lv['num'])) $lv['num'] = 1;
|
|
|
- }
|
|
|
- Db::table('store_goods')->where('id',$goods_info['id'])->update(['last_award'=>json_encode($last_award)]);
|
|
|
- }
|
|
|
+ $time = [ ['8:00','10:00' ] , ['18:30','22:00'] ];
|
|
|
+
|
|
|
+ var_dump(json_encode($time));
|
|
|
}
|
|
|
|
|
|
|