正在显示
1 个修改的文件
包含
11 行增加
和
10 行删除
@@ -96,16 +96,7 @@ class Index extends Api | @@ -96,16 +96,7 @@ class Index extends Api | ||
96 | { | 96 | { |
97 | $order=Db::name("order")->find($order_id); | 97 | $order=Db::name("order")->find($order_id); |
98 | if($order['user_id']){ | 98 | if($order['user_id']){ |
99 | - $order['start']=$order['starting_point']; | ||
100 | - $order['to']=$order['end_point']; | ||
101 | - $order['timeStr']=str_replace(' ','',$order['reservation_time']); | ||
102 | - if($order['type']==1){ | ||
103 | - $order['typeImg']='../../static/img-2.png'; | ||
104 | - }else if($order['type']==2){ | ||
105 | - $order['typeImg']='../../static/img-0.png'; | ||
106 | - }else{ | ||
107 | - $order['typeImg']='../../static/img-1.png'; | ||
108 | - } | 99 | + |
109 | $user=Db::name("user")->find($order['user_id']); | 100 | $user=Db::name("user")->find($order['user_id']); |
110 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 101 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
111 | $wxopenid=$wct_user['wx_openid']; | 102 | $wxopenid=$wct_user['wx_openid']; |
@@ -132,6 +123,16 @@ class Index extends Api | @@ -132,6 +123,16 @@ class Index extends Api | ||
132 | } | 123 | } |
133 | } | 124 | } |
134 | if($order['driver_id']){ | 125 | if($order['driver_id']){ |
126 | + $order['start']=$order['starting_point']; | ||
127 | + $order['to']=$order['end_point']; | ||
128 | + $order['timeStr']=str_replace(' ','',$order['reservation_time']); | ||
129 | + if($order['type']==1){ | ||
130 | + $order['typeImg']='../../static/img-2.png'; | ||
131 | + }else if($order['type']==2){ | ||
132 | + $order['typeImg']='../../static/img-0.png'; | ||
133 | + }else{ | ||
134 | + $order['typeImg']='../../static/img-1.png'; | ||
135 | + } | ||
135 | $driver=Db::name("driver")->find($order['driver_id']); | 136 | $driver=Db::name("driver")->find($order['driver_id']); |
136 | $user=Db::name("user")->find($driver['user_id']); | 137 | $user=Db::name("user")->find($driver['user_id']); |
137 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 138 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
-
请 注册 或 登录 后发表评论