Browse Source

修改文件

柳建 9 months ago
parent
commit
a1832c0052
1 changed files with 4 additions and 5 deletions
  1. 4 5
      application/api/controller/Index.php

+ 4 - 5
application/api/controller/Index.php

@@ -109,13 +109,12 @@ class Index extends Api
                     $userlinkdata[]=['id'=>$val['userlinkid'],'income'=>$val['income']+$income];
 
                 }
-                print_r($userlinkdata);
-                print_r($savedata);
-//                $this->userlinkModel->saveAll($userlinkdata);
-//                $this->recordModel->saveAll($savedata);
+
+                $this->userlinkModel->saveAll($userlinkdata);
+                $this->recordModel->saveAll($savedata);
                 $returndata= 'insert ' . count($savedata) . ' record';
             }
-           // Db::commit();
+            Db::commit();
         }
         return $returndata;
     }