From 24501804abed0c00092e887562a0745b4324efa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8F=AC=E6=B3=A2?= <963087326@qq.com> Date: Fri, 12 Jun 2020 14:29:09 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=97=A5=E5=B8=B8=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE.=20=E6=8B=85=E5=BF=83=E6=94=B9=E5=8A=A8?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=90=8C=E4=BA=8B=E4=BB=A3=E7=A0=81=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99,=20=E7=9B=B8=E4=BF=A1=E4=B8=8D=E5=B0=91?= =?UTF-8?q?=E9=83=BD=E8=BF=99=E4=B9=88=E5=B9=B2=E7=9A=84.=20=E5=93=88?= =?UTF-8?q?=E5=93=88=E5=93=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\273\345\217\226\346\225\260\346\215\256" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "\346\227\245\345\270\270\350\257\273\345\217\226\346\225\260\346\215\256" diff --git "a/\346\227\245\345\270\270\350\257\273\345\217\226\346\225\260\346\215\256" "b/\346\227\245\345\270\270\350\257\273\345\217\226\346\225\260\346\215\256" new file mode 100644 index 0000000..2b04dd1 --- /dev/null +++ "b/\346\227\245\345\270\270\350\257\273\345\217\226\346\225\260\346\215\256" @@ -0,0 +1,24 @@ +//第一位同事需要test表字段1 +$res = db('test')->field('字段1')->find(); +if($res['字段1']){ + //Do something... +} +//此处省略100行代码 + +//第二位同事需要test表字段2,于是添加了如下代码 +$res = db('test')->field('字段2')->find(); +if($res['字段2']){ + //Do something... +} + +//此处省略再次100行代码 + +//第三位同事需要test表字段3,于是又添加了如下代码 +$res = db('test')->field('字段3')->find(); +if($res['字段3']){ + //Do something... +} + +//此处省略再次100行代码 + +//哈哈哈 -- Gitee