刚才发布了一个分享创造帖子怎么不见了??

帖子的大体内容就是说我用 OpenAI 做了一个小程序
OpenAI 的 GT3 除了速度有点慢,真的挺好用

本作品采用《CC 协议》,转载必须注明作者和本文链接
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 11

可以这样随便给自己的产品打广告吗?

2年前 评论
hollowcg (楼主) 2年前

体验后,移除了,聊一次天给我弹一次弹窗广告,真优秀

2年前 评论
hollowcg (楼主) 2年前
王小大 2年前
anchonghuang 2年前
hollowcg (楼主) 2年前
hollowcg (楼主) 2年前

各位看看代码就知道,点击发送触发的是 showAds,在广告显示或者显示失败的时候就已经把 ChatGPT 的请求发过去了,你就算不看广告,也不会中断,因为 ChatGPT 的请求时间长,加上了广告打发时间而已,有可能你的广告看完了,你的请求还没有回来 @anchonghuang

// 发送信息
            send() {
                let that = this
                if (!this.content) {
                    uni.showToast({
                        title: '请输入有效的内容',
                        icon: 'none'
                    })
                    return;
                }

                // 将当前发送信息 添加到消息列表。
                let data = {
                    "id": ++this.contentId,
                    "content": this.content,
                    "type": 1,
                    "pic": "/static/people.png"
                }
                this.talkList.push(data);

                data = {
                    "id": ++this.contentId,
                    "content": "正在与ChatGPT沟通...",
                    "type": 0,
                    "pic": "/static/chat_gpt.png"
                }
                this.talkList.push(data);

                this.$u.api.postChatGPTCompletions({
                    contentId: this.contentId,
                    content: this.content
                }).then(res => {
                    that.talkList[that.talkList.length - 1]['content'] = res.data.result
                })

                this.$nextTick(() => {
                    // 清空内容框中的内容
                    this.content = '';
                    uni.pageScrollTo({
                        scrollTop: 999999, // 设置一个超大值,以保证滚动条滚动到底部
                        duration: 0
                    });
                })
            },
            showAds() {
                let that = this
                if (videoAd) {
                    videoAd.show().then(() => {
                        that.send()
                    }).catch(() => {
                        // 失败重试
                        videoAd.load()
                            .then(() => videoAd.show())
                            .catch(err => {
                                that.send()
                            })
                    })
                }
            },
2年前 评论

所以是顺便想薅一波广告费?

2年前 评论

全是广告,举报了

2年前 评论