feat: 新用户注册飞书通知

This commit is contained in:
eric
2022-12-14 15:16:00 +08:00
parent 208c530dda
commit 91baccc9cb
5 changed files with 14 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2,8 +2,6 @@
/*! ../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */
/*! ../../utils/index */
/*! ../common/utils */
/*! ../common/validator */
@@ -38,6 +36,8 @@
/*! ./wxs */
/*! @/utils/index */
/*! @antmjs/vantui/es/button */
/*! @antmjs/vantui/es/cell */

View File

@@ -94,15 +94,16 @@ const Home = () => {
};
});
const testCloud = async () => {
// 云托管测试
const testCloud = async () => {
const res = await cloudcall({
path:'/'
path:'/feishu'
})
console.log('业务返回结果',res)
};
useEffect(() => {
testCloud();
// testCloud();
}, []);
useEffect(() => {

View File

@@ -21,13 +21,14 @@ import Taro from "@tarojs/taro";
import ActiveCard from "../components/ActiveCard";
import {
addTable,
cloudcall,
getOpenid,
getTable,
getTableid,
isLogin,
phoneLogin,
updateTableid,
} from "../../utils/index";
} from "@/utils/index";
import { type } from "../../../config";
import { Divider } from "@antmjs/vantui";
@@ -198,8 +199,11 @@ const my = (props: any) => {
onClick={async () => {
// 获取收获地址
Taro.chooseAddress({
success: function (AddressRes) {
success: async (AddressRes) =>{
console.log("AddressRes", AddressRes);
await cloudcall({
path:'/feishu'
})
Taro.cloud.callFunction({
name: "getOpenid",
complete: async (opemRes: any) => {