wupengfei 3 years ago
parent
commit
e779f2895c
1 changed files with 3 additions and 8 deletions
  1. 3 8
      application/api/controller/Qc.php

+ 3 - 8
application/api/controller/Qc.php

@@ -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));
     }