Пример #1
0
 public static function deleteUserCompense($omOrderId)
 {
     !self::$dbConn ? self::initDB() : null;
     $sql = "DELETE FROM " . self::$UserCompenseTable . " WHERE global_user_id = " . $omOrderId;
     //echo $sql;
     if (!self::$dbConn->query($sql)) {
         self::$errCode = "002";
         self::$errMsg = " 插入数据失败! ";
         return false;
         //失败则设置错误码和错误信息, 返回false
     } else {
         self::$errCode = "200";
         self::$errMsg = " 插入数据成功! ";
         return true;
         //失败则设置错误码和错误信息, 返回true
     }
 }