|
|
@@ -11,15 +11,16 @@ namespace RMYY_CallCenter_Api.QuartzWorker
|
|
11
|
11
|
{
|
|
12
|
12
|
public class PushWorkorder: QuartzJob
|
|
13
|
13
|
{
|
|
|
14
|
+ private static String api = ConfigHelper.GetValue("AutoApi");
|
|
14
|
15
|
public PushWorkorder()
|
|
15
|
16
|
{
|
|
16
|
|
- CronExpression = "0 0/5 * * * ?";
|
|
|
17
|
+ CronExpression = "0 0/1 * * * ?";
|
|
17
|
18
|
DoWork += Push;
|
|
18
|
19
|
}
|
|
19
|
20
|
|
|
20
|
21
|
public void Push(object sender, EventArgs e)
|
|
21
|
22
|
{
|
|
22
|
|
- string api= ConfigHelper.GetValue("AutoApi");
|
|
|
23
|
+
|
|
23
|
24
|
WebClient web = new WebClient();
|
|
24
|
25
|
web.Encoding = Encoding.UTF8;
|
|
25
|
26
|
string Dataurl = web.DownloadString(api+ "FaultRepair/Evaluate");
|