Commit 74b9c2a8 authored by shajiaiming's avatar shajiaiming

修复已知问题

parent dd51be96
...@@ -215,11 +215,12 @@ class TickerController extends BaseController ...@@ -215,11 +215,12 @@ class TickerController extends BaseController
$symbol = $request->post('symbol', ''); $symbol = $request->post('symbol', '');
$platform = $request->post('platform', ''); $platform = $request->post('platform', '');
$device_code = $request->post('device_code', ''); $device_code = $request->post('device_code', '');
if (empty($symbol) || empty($device_code) || empty($platform)) { $platform_id = $request->post('platform_id', '');
if (empty($symbol) || empty($device_code) || empty($platform) || empty($platform_id)) {
$msg = '请求参数错误!'; $msg = '请求参数错误!';
goto doEnd; goto doEnd;
} }
$model = CoinOptional::find()->where(['symbol' => $symbol, 'platform' => $platform, 'device_code' => $device_code])->one(); $model = CoinOptional::find()->where(['symbol' => $symbol, 'platform' => $platform, 'device_code' => $device_code, 'platform_id' => $platform_id])->one();
if (empty($model)) { if (empty($model)) {
$msg = '数据不存在!'; $msg = '数据不存在!';
goto doEnd; goto doEnd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment