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

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

本作品采用《CC 协议》,转载必须注明作者和本文链接
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 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年前 评论

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

1年前 评论

全是广告,举报了

1年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!