error('地址转换失败2'); $location = array_values($geocoder['result']['location']); list($lon, $lat) = $location; dd($lon, $lat); // $list = UserCenter::find()->all(); // foreach ($list as $item) { // // 转换经纬度 // $geocoder = QqMapHelper::Geocoder($item->getOperationAddress()); // if ($geocoder['status'] != 0) return $this->error('地址转换失败'); // // 经纬度 // if (empty($geocoder['result']['location'])) return $this->error('地址转换失败2'); // $location = array_values($geocoder['result']['location']); // list($lon, $lat) = $location; // $item->lon = $lon; // $item->lat = $lat; // $item->save(); // } // $order = MallOrder::findOne(['id' => 21994]); // $service = new UpgradeService(['mall_id' => $this->mall_id]); // $service->checkUpgrade($order); // $service = new CommissionService(['mall_id' => $this->mall_id]); // $service->checkCommission($order); // $service->paymentCommission($order->id, 1); return $this->render('index',[ ]); } }