作者 潘浩文
1 个管道 的构建 通过 耗费 4 秒

个人中心接口设计

... ... @@ -152,7 +152,7 @@ class PostController extends RestBaseController
$findFile = Db::name("asset")->where('file_md5', $fileMd5)->where('file_sha1', $fileSha1)->find();
if (!empty($findFile)) {
$this->success("上传成功!", ['url' => cmf_get_image_preview_url($findFile['file_path']), 'filename' => $findFile['filename']]);
$this->success("上传成功!", ['url' => cmf_get_asset_url($findFile['file_path']), 'filename' => $findFile['filename']]);
}
$info = $info->move(ROOT_PATH . 'public' . DS . 'upload');
if ($info) {
... ...
... ... @@ -45,6 +45,7 @@
<th>订单价格</th>
<th>用户微信二维码</th>
<th>订单创建时间</th>
<th>订单预约时间</th>
<th>陪玩时长(小时)</th>
<th>订单状态</th>
<th>管理员备注</th>
... ... @@ -63,6 +64,7 @@
<td>{$vo.total_price}元</td>
<td><img width="25" height="25" src="{:cmf_get_image_preview_url($vo.wx)}" onclick="parent.imagePreviewDialog(this.src);"/></td>
<td>{:date('Y-m-d H:i:s',$vo.create_time);}</td>
<td>{:date('Y-m-d H:i:s',$vo.start_time);}</td>
<td>{$vo.last}</td>
<td>
<eq name="vo.status" value="1">
... ... @@ -119,6 +121,7 @@
<th>订单价格</th>
<th>用户微信二维码</th>
<th>订单创建时间</th>
<th>订单预约时间</th>
<th>陪玩时长(小时)</th>
<th>订单状态</th>
<th>管理员备注</th>
... ...