瀏覽代碼

debug stat

stanley-king 7 年之前
父節點
當前提交
7b43b0c058
共有 4 個文件被更改,包括 11 次插入13 次删除
  1. 5 6
      helper/stat_helper.php
  2. 0 1
      helper/statistics/statorder.php
  3. 5 5
      helper/statistics/stbonus.php
  4. 1 1
      helper/statistics/stmember.php

+ 5 - 6
helper/stat_helper.php

@@ -40,7 +40,7 @@ class stat_helper
             }
         }
         catch (Exception $ex) {
-            Log::record($ex->getMessage(),Log::DEBUG);
+            Log::record($ex->getMessage(),Log::ERR);
         }
 
         return true;
@@ -54,7 +54,7 @@ class stat_helper
         }
         catch(Exception $ex)
         {
-            Log::record($ex->getMessage(),Log::DEBUG);
+            Log::record($ex->getMessage(),Log::ERR);
         }
     }
     public static function onInvite()
@@ -66,7 +66,7 @@ class stat_helper
         }
         catch(Exception $ex)
         {
-            Log::record($ex->getMessage(),Log::DEBUG);
+            Log::record($ex->getMessage(),Log::ERR);
         }
     }
     public static function onDaiyMember($time)
@@ -78,7 +78,7 @@ class stat_helper
         }
         catch(Exception $ex)
         {
-            Log::record($ex->getMessage(),Log::DEBUG);
+            Log::record($ex->getMessage(),Log::ERR);
         }
     }
     public static function onDaiyOrder($time)
@@ -90,8 +90,7 @@ class stat_helper
         }
         catch(Exception $ex)
         {
-            Log::record($ex->getMessage(),Log::DEBUG);
+            Log::record($ex->getMessage(),Log::ERR);
         }
     }
-
 }

+ 0 - 1
helper/statistics/statorder.php

@@ -28,7 +28,6 @@ class statorder extends stat_base
     public function daily()
     {
         $this->order_info();
-
     }
 
     private function order_info()

+ 5 - 5
helper/statistics/stbonus.php

@@ -34,7 +34,7 @@ class stbonus extends stat_base
         }
 
         $datas['bonus_pay_amount'] = serialize($pay_amount);
-        $this->save($fEdit, $datas);
+        return $this->save($fEdit, $datas);
     }
 
     public function add_send($rate,$amount)
@@ -58,7 +58,7 @@ class stbonus extends stat_base
         }
 
         $datas['person_send_amount'] = serialize($send_amount);
-        $this->save($fEdit,$datas);
+        return $this->save($fEdit,$datas);
     }
 
     public function daily()
@@ -146,7 +146,7 @@ class stbonus extends stat_base
             $datas['all_grab_count']  = $grab_conut;
             $datas['all_bind_count']  = $bind_conut;
 
-            $this->save($fEdit,$datas);
+            return $this->save($fEdit,$datas);
         }
     }
 
@@ -182,7 +182,7 @@ class stbonus extends stat_base
             $result = $this->mModel->get_one($this->mDateId,'bonus_pay_amount,person_send_amount',true);
             $fEdit = empty($result) ? false : true;
 
-            $this->save($fEdit,$datas);
+            return $this->save($fEdit,$datas);
         }
     }
 
@@ -250,7 +250,7 @@ class stbonus extends stat_base
             $datas['admin_grab_count']  = $grab_conut;
             $datas['admin_bind_count']  = $bind_conut;
 
-            $this->save($fEdit,$datas);
+            return $this->save($fEdit,$datas);
         }
     }
 }

+ 1 - 1
helper/statistics/stmember.php

@@ -78,6 +78,6 @@ class stmember extends stat_base
             $datas['invite_user_count'] = $result[0]['invite_user_count'] + 1;
         }
 
-        $this->save($fEdit,$datas);
+        return $this->save($fEdit,$datas);
     }
 }