摘要: 1、sdk/main.go 文件 package main import ( "fmt" "github.com/hyperledger/fabric-sdk-go/pkg/client/channel" "github.com/hyperledger/fabric-sdk-go/pkg/commo 阅读全文
posted @ 2021-03-01 15:18 北漂生活 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1、copyright.go 文件 package main import ( "fmt" "github.com/hyperledger/fabric-chaincode-go/shim" "github.com/hyperledger/fabric-protos-go/peer" ) type 阅读全文
posted @ 2021-03-01 15:16 北漂生活 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 1、官网下载 wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 2、yum安装 yum -y install mysql57-community-release-el7-10.noarch. 阅读全文
posted @ 2021-02-19 23:26 北漂生活 阅读(483) 评论(0) 推荐(0) 编辑
摘要: yum install php74-php-gd php74-php-pdo php74-php-mbstring php74-php-cli php74-php-fpm php74-php-mysqlnd php74-php-ldap php74-php-odbc php74-php-pear p 阅读全文
posted @ 2021-02-19 22:47 北漂生活 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1、yum 安装 redis 命令:yum -y install redis 2、配置开机启动 vi /etc/init.d/redis.service 添加如下代码: [Unit] Description=Redis After=network.target [Service] ExecStart 阅读全文
posted @ 2021-01-13 17:38 北漂生活 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 不废话,直接上代码 /** * 查看数据库结构 * @return mixed */ public function actionDbSchema() { $tables = Yii::$app->db->createCommand("SHOW TABLE STATUS")->queryAll(); 阅读全文
posted @ 2021-01-07 17:18 北漂生活 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Easy SMS是一个非常好用的短信发送组件,大多数厂家短信都可以使用,无奈短信平台太多,偶尔会遇到Easy SMS没有的平台,那就只能自己再造个轮子。 1、进入/vendor/overtrue/easy-sms/src/Gateways目录下,新建文件 : MeilianGateway.php 2 阅读全文
posted @ 2020-12-08 22:24 北漂生活 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1.配置MongoDB的yum源 创建yum源文件: #cd /etc/yum.repos.d #vim mongodb-org-4.0.repo 使用阿里云的源 [mngodb-org] name=MongoDB Repository baseurl=http://mirrors.aliyun.c 阅读全文
posted @ 2020-11-26 11:12 北漂生活 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1、接口代码结构示意,is_hide为表头字段隐藏使用,width为设置表头宽度 { "id": { "is_hide": 1, "width": "" }, "name": { "is_hide": 0, "width": "" }, "parent_id": { "is_hide": 0, "w 阅读全文
posted @ 2020-11-17 18:03 北漂生活 阅读(1443) 评论(0) 推荐(0) 编辑
摘要: go语言nil返回接口时是null,前端同事要求返回[]空数组,代码片段如下: res := g.Map{ "list": menus, "statusOptions": statusOptions, "typeOptions": typeOptions, "fields": fields, //n 阅读全文
posted @ 2020-11-17 17:51 北漂生活 阅读(3985) 评论(1) 推荐(1) 编辑