作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

order

@@ -28,13 +28,15 @@ class OrderController extends HomeBaseController{ @@ -28,13 +28,15 @@ class OrderController extends HomeBaseController{
28 * @method GET 28 * @method GET
29 * 29 *
30 * @param name:users_id type:String require:1 default:无 other: desc:用户id 30 * @param name:users_id type:String require:1 default:无 other: desc:用户id
31 - * 31 + * @param name:mac_address type:String require:1 default:无 other: desc:设备Mac地址
32 * 32 *
33 */ 33 */
34 public function createOrder(){ 34 public function createOrder(){
35 $users_id=$this->request->param('users_id'); 35 $users_id=$this->request->param('users_id');
  36 + $mac_address=$this->request->param('mac_address');
36 $order=[ 37 $order=[
37 'order_no' => cmf_get_order_sn(), 38 'order_no' => cmf_get_order_sn(),
  39 + 'mac_address' => $mac_address,
38 'users_id' => $users_id, 40 'users_id' => $users_id,
39 'start_time' => time(), 41 'start_time' => time(),
40 'state' => 1 42 'state' => 1