Commit 44ca48bb authored by hujun's avatar hujun

号码批量插入

parent 5393dcad
......@@ -10,6 +10,7 @@ namespace app\task\controller;
use app\api_broker\untils\PlsDemo;
use app\api_broker\untils\RongDemo;
use app\model\AliYunPhone;
use app\model\AliYunSecretReport;
use app\model\BindingPhone;
use app\model\SecretReport;
......@@ -248,4 +249,27 @@ class PrivacyNumber
}
return;
}
/**
* 号码批量插入
* @throws \Exception
*/
public function insertPhone() {
// $phone = [
//
// ];
// dump(count($phone));die;
// foreach ($phone as $k=>$v) {
// $insert[$k]['phone_x'] = $v;
// $insert[$k]['phone_pool_id'] = 1;
// $insert[$k]['monthly'] = 500;
// $insert[$k]['cost'] = 60;
// $insert[$k]['area'] = '021';
// $insert[$k]['type'] = 1;
// }
//
// $m_phone = new AliYunPhone();
// $result = $m_phone->saveAll($insert);
// dump($result);die;
}
}
\ No newline at end of file
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