Skip to content

Feat xxx #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: WeChat MiniProgram Demo CI/CD

on:
push:

pull_request:

branches:
- feat-ce
jobs:
Expand All @@ -27,4 +29,6 @@ jobs:
fi
mkdir -p ./build
echo "$WX_PRIVATE_KEY" > ./build/key

echo "$WX_PRIVATE_KEY" | xxd

19 changes: 19 additions & 0 deletions .github/workflows/pr-lint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PR Lint Check

on:
pull_request:
branches: feat-wzy-cs

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
4 changes: 4 additions & 0 deletions build/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import packageJson from '../package.json' with { type: 'json' }
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const privateKeyPath = path.resolve(__dirname, './key')

try {
const content = fs.readFileSync(privateKeyPath, 'utf8');
console.log('文件内容:', content);
} catch (err) {
console.error('读取文件出错:', err);
}

// 检查私钥文件是否已存在
if (!fs.existsSync(privateKeyPath)) {
const privateKeyContent = process.env.WX_PRIVATE_KEY
Expand Down Expand Up @@ -58,3 +60,5 @@ ci.upload({
// 删除临时私钥文件
fs.unlinkSync(privateKeyPath)
})


47 changes: 0 additions & 47 deletions miniprogram/packageXRFrame/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import '../../xr-custom/assets/effect-last-record-final'

import list from './data/index'

let lastOpened = false
let lastCount = 0
let first = true

Page({
Expand Down Expand Up @@ -52,7 +50,6 @@ Page({
}

if (path === '/pages/scene-last-record/index') {
this.handleLastRecord()
return
}

Expand All @@ -65,50 +62,6 @@ Page({
},
})
}
},
async handleLastRecord() {
// if (lastOpened) {
// return
// }

// lastCount += 1
// // if (Math.random() >= (0.34 + lastCount * 0.1)) {
// // return;
// // }

// const root = this.data.root
// lastOpened = true

// wx.request({
// url: 'https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/last-gate.txt',
// success(res) {
// wx.showModal({
// title: '一把钥匙',
// content: res.data,
// confirmText: '探寻真实',
// cancelText: '放下钥匙',
// success(res) {
// if (res.cancel) {
// wx.onAppShow((result) => {
// lastOpened = false
// })
// return
// }

// wx.navigateTo({
// url: root + '/pages/scene-last-record/index',
// success: () => {
// wx.onAppShow((result) => {
// lastOpened = false
// })
// }
// })
// }
// })
// },
// fail(err) {
// lastOpened = false
// }
// })
}
})
2 changes: 1 addition & 1 deletion miniprogram/packageXRFrame/pages/index/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<scroll-view class="main" scroll-y="{{true}}">
<view class="slogen-wrap" bind:tap="handleLastRecord">
<view class="slogen-wrap">
<view class="slogen">XR<view class="special">Frame</view></view>
<view class="intro">
小程序低成本高性能XR解决方案
Expand Down
Loading