|
@@ -139,6 +139,7 @@ class BillApply extends Controller
|
|
|
$vo['express_company_title'] = $express['express_title'];
|
|
|
$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['status'] = '1';
|
|
|
$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();
|
|
@@ -151,7 +152,7 @@ class BillApply extends Controller
|
|
|
if($this->request->isPost()) {
|
|
|
$id = input('post.id');
|
|
|
$bill_img = input('post.bill_img');
|
|
|
- \app\common\model\BillApply::where('id',$id)->update(['bill_img'=>$bill_img,'bill_time'=>date("Y-m-d H:i:s")]);
|
|
|
+ \app\common\model\BillApply::where('id',$id)->update(['bill_img'=>$bill_img,'bill_time'=>date("Y-m-d H:i:s"),'status'=>1]);
|
|
|
$info = \app\common\model\BillApply::where('b.id',$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,0,0,$info['act_id'],'',$id);
|