|
@@ -93,13 +93,10 @@ class BillApply extends Controller
|
|
}
|
|
}
|
|
|
|
|
|
if ($this->request->isPost() && $this->request->action() == 'deliver') {
|
|
if ($this->request->isPost() && $this->request->action() == 'deliver') {
|
|
- $act_id = \app\common\model\BillApply::where('b.id',$data['id'])->alias('b')
|
|
|
|
- ->leftJoin('ActivityApply y','y.id = b.order_id')->value('y.act_id');
|
|
|
|
$express_company = Db::name('express_company')->field('id,express_title')->find($data['express_company_id']);
|
|
$express_company = Db::name('express_company')->field('id,express_title')->find($data['express_company_id']);
|
|
$data['express_company_title'] = $express_company['express_title'] ? $express_company['express_title'] : '';
|
|
$data['express_company_title'] = $express_company['express_title'] ? $express_company['express_title'] : '';
|
|
$data['express_send_at'] = date("Y-m-d H:i:s");
|
|
$data['express_send_at'] = date("Y-m-d H:i:s");
|
|
$data['express_state'] = 1;
|
|
$data['express_state'] = 1;
|
|
- UserMessage::sendUserMessage($data['user_id'],'activity',5,1,0,$act_id,'',$data['id']);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -143,6 +140,9 @@ class BillApply extends Controller
|
|
$vo['express_send_at'] = empty($order['express_send_at']) ? date('Y-m-d H:i:s') : $order['express_send_at'];
|
|
$vo['express_send_at'] = empty($order['express_send_at']) ? date('Y-m-d H:i:s') : $order['express_send_at'];
|
|
$vo['express_state'] = '1';
|
|
$vo['express_state'] = '1';
|
|
$vo['bill_time'] = date("Y-m-d H:i:s");
|
|
$vo['bill_time'] = date("Y-m-d H:i:s");
|
|
|
|
+ $info = \app\common\model\BillApply::where('b.id', $vo['id'])->alias('b')->field('b.user_id,y.act_id')
|
|
|
|
+ ->leftJoin('ActivityApply y','y.id = b.order_id')->find()->toArray();
|
|
|
|
+ UserMessage::sendUserMessage($info['user_id'],'activity',5,1,0,$info['act_id'],'',$vo['id']);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|