|
@@ -58,7 +58,7 @@ class MobileOrder extends Backend
|
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
|
|
|
|
$list = $this->model
|
|
|
- ->with(['info','operation','operation.admin','admin'])
|
|
|
+ ->with(['info','operation','operation.admin','admin','admin.admin'])
|
|
|
->where($where)
|
|
|
->order($sort, $order)
|
|
|
->paginate($limit);
|
|
@@ -126,6 +126,7 @@ class MobileOrder extends Backend
|
|
|
$model['amount_refund']=$data['amount'];
|
|
|
$model['refund_no']=session_create_id();
|
|
|
Refund::setType($model)->refund();
|
|
|
+ $model['status']=\app\common\model\MobileOrder::STATUS_REFUNDED;
|
|
|
$model->save();
|
|
|
|
|
|
Db::commit();
|