作者 开飞机的舒克

接口优化

... ... @@ -132,12 +132,6 @@ class Study extends Backend
$row[$fieldArr[$k]] = $v;
}
}
$id = \db('study')->max('id');
$ids = $allRow+$id-1;
$res = str_pad($ids,8,"0",STR_PAD_LEFT);
$barpath = Resource::StudyBar($res);
$row['barcode'] = $barpath;
$row['unique'] = $res;
if ($row) {
$insert[] = $row;
}
... ...
... ... @@ -3,8 +3,6 @@
namespace app\api\controller;
use app\common\controller\Api;
use app\common\controller\Resource;
use tinymeng\code\Generate;
mb_internal_encoding("UTF-8");
/**
* 示例接口
... ... @@ -69,10 +67,6 @@ class Demo extends Api
*/
public function test3()
{
$filepath = ROOT_PATH.'/uploads/barimages/20230317/00000029.png';
$filename = 'http://rramxwmk1.hb-bkt.clouddn.com/campus1/uploads/20230317/';
$qinu = $this->qiniu($filepath,$filename);
$this->success('上传成功',$qinu);
}
}
... ...
... ... @@ -5182,7 +5182,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-17 16:27:22 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-17 17:41:30 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...