作者 郭鑫
1 个管道 的构建 通过 耗费 0 秒

订单详情

... ... @@ -103,11 +103,13 @@ class AdminOrderController extends AdminBaseController
$model = new OrderModel();
$up_order['id'] = $data['id'];
$up_order['status'] = $data['type'];
$up_order['update_time'] = time();
$res = $model->isUpdate(true)->save($up_order);
$hireModel = new HireModel();
$where_hire['order_id'] = $data['id'];
$where_hire['status'] = array('neq',9);
$hire_save['status'] =$data['type'];
$hire_res = $hireModel->isUpdate(true)->save($hire_save);
$hire_save['update_time'] = time();
$hire_res = Db::name('Hire')->where($where_hire)->update($hire_save);
if($res && $hire_res){
// 发送模板消息
$acctoken = $this->getAccessToken();
... ...