积分订单备注

This commit is contained in:
evoxwht 2023-03-27 15:44:46 +08:00
parent 35ed84c534
commit a06afd81fc

View File

@ -725,12 +725,15 @@ class StoreIntegralOrderServices extends BaseServices
* @param int $id
* @param string $remark
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function remark(int $id, string $remark)
{
if (!$remark) throw new AdminException(400106);
if (!$id) throw new AdminException(100100);
if (!$order = $this->services->get($id)) {
if (!$order = $this->dao->get($id)) {
throw new AdminException(100025);
}