/// <summary> /// 更新API调用量 /// </summary> public static void Update_website_api() { try { website_info data = new website_info() { Type = OperationType.Operation.api.ToString() }; string json_str = RabbitMqHelper.Object_to_Json <website_info>(OperationType.Operation.api, data); RabbitMqHelper.SendMessageToQueue(OperationType.Mq_queue_name, json_str); } catch (Exception) { } }
// GET: Globals // public void UpdataWebsite(string broType) { try { website_info data = new website_info() { Type = broType }; string Json_str = RabbitMqHelper.Object_to_Json <website_info>(OperationType.Operation.update_web_site, data); RabbitMqHelper.SendMessageToQueue(OperationType.Mq_queue_name, Json_str); } catch (Exception) { } }