修改打包代码 文件不可见
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
4bf8260774
commit
30009110e8
|
|
@ -30,7 +30,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "react-app-rewired start",
|
||||
"build": "react-app-rewired build",
|
||||
"build": "env GENERATE_SOURCEMAP=false react-app-rewired build",
|
||||
"test": "react-app-rewired test",
|
||||
"eject": "react-scripts eject",
|
||||
"deploy": "node deploy.js"
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="background.jpg" />
|
||||
<link rel="icon" href="background.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Web site created using create-react-app" />
|
||||
<link rel="apple-touch-icon" href="background.jpg" />
|
||||
<link rel="apple-touch-icon" href="background.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
|
|
|
|||
|
|
@ -9,34 +9,34 @@ export default function successInform(phone, name, stuID, first, second) {
|
|||
else if (nownum === "1") localStorage.setItem("EVA_SMS_SERVICE", "2");
|
||||
else if (nownum === "2") localStorage.setItem("EVA_SMS_SERVICE", "3");
|
||||
if (nownum === "3") return;
|
||||
const Core = require("@alicloud/pop-core");
|
||||
let client = new Core({
|
||||
accessKeyId: "LTAI4GGAnN9vPGAGph9foYuN",
|
||||
accessKeySecret: "PyDLVnceUuXWsT9DhiDJtDJ0NXLPxM",
|
||||
endpoint: "https://dysmsapi.aliyuncs.com",
|
||||
apiVersion: "2017-05-25",
|
||||
});
|
||||
// const Core = require("@alicloud/pop-core");
|
||||
// let client = new Core({
|
||||
// accessKeyId: "*",
|
||||
// accessKeySecret: "*",
|
||||
// endpoint: "https://dysmsapi.aliyuncs.com",
|
||||
// apiVersion: "2017-05-25",
|
||||
// });
|
||||
|
||||
let temp = {
|
||||
name: name,
|
||||
stuID: stuID,
|
||||
first: department[first],
|
||||
second: department[second],
|
||||
};
|
||||
temp = JSON.stringify(temp);
|
||||
// let temp = {
|
||||
// name: name,
|
||||
// stuID: stuID,
|
||||
// first: department[first],
|
||||
// second: department[second],
|
||||
// };
|
||||
// temp = JSON.stringify(temp);
|
||||
|
||||
let params = {
|
||||
RegionId: "cn-hangzhou",
|
||||
PhoneNumbers: phone,
|
||||
SignName: "EVA记录",
|
||||
TemplateCode: "SMS_199600228",
|
||||
TemplateParam: temp,
|
||||
};
|
||||
// console.log(params);
|
||||
let requestOption = {
|
||||
method: "POST",
|
||||
headers: {},
|
||||
};
|
||||
// let params = {
|
||||
// RegionId: "cn-hangzhou",
|
||||
// PhoneNumbers: phone,
|
||||
// SignName: "EVA记录",
|
||||
// TemplateCode: "SMS_199600228",
|
||||
// TemplateParam: temp,
|
||||
// };
|
||||
// // console.log(params);
|
||||
// let requestOption = {
|
||||
// method: "POST",
|
||||
// headers: {},
|
||||
// };
|
||||
|
||||
client.request("SendSms", params, requestOption);
|
||||
// client.request("SendSms", params, requestOption);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class NewForm extends React.Component {
|
|||
method: "POST",
|
||||
data: qs.stringify({ dto: JSON.stringify(values) }),
|
||||
});
|
||||
this.saveLocalStorage();
|
||||
if (result.data.status === "success") {
|
||||
message.success(
|
||||
"提交成功!后续的面试时间会以短信形式通知,期待你的加入!"
|
||||
|
|
|
|||
|
|
@ -97,7 +97,6 @@ class UploadToOSS extends React.Component {
|
|||
const { imageUrl } = this.state;
|
||||
return (
|
||||
<Upload
|
||||
accept=".jpg,.png"
|
||||
showUploadList={false}
|
||||
beforeUpload={this.beforeUpload}
|
||||
onChange={this.handleChange}
|
||||
|
|
|
|||
Loading…
Reference in New Issue