Commit ee079189 authored by hujun's avatar hujun

硬盘容量判断

parent 5c00d3c3
...@@ -406,6 +406,7 @@ class Shop extends Basic ...@@ -406,6 +406,7 @@ class Shop extends Basic
$verify = new VerifyService(); $verify = new VerifyService();
$agentId = $verify->getPanpartyAgentsByHouseId($params["id"]); $agentId = $verify->getPanpartyAgentsByHouseId($params["id"]);
$result["panParty"] = $agentId; $result["panParty"] = $agentId;
$result["head_portrait"] = AGENTHEADERIMGURL;
$result['new_sign_rule'] = "付{$result['payment_month']}{$result['deposit_month']},签订{$result['age_limit']}年"; $result['new_sign_rule'] = "付{$result['payment_month']}{$result['deposit_month']},签订{$result['age_limit']}年";
$result['payment_deposit'] = empty($result['payment_month']) ? "" : "付{$result['payment_month']}{$result['deposit_month']}"; $result['payment_deposit'] = empty($result['payment_month']) ? "" : "付{$result['payment_month']}{$result['deposit_month']}";
......
...@@ -404,7 +404,7 @@ class GHousesToAgents extends BaseModel ...@@ -404,7 +404,7 @@ class GHousesToAgents extends BaseModel
public function getHousesUpdateAgents($houses_id) public function getHousesUpdateAgents($houses_id)
{ {
$select_data = $this $select_data = $this
->field('b.id,b.store_id,b.name,b.img,a.type,b.phone,c.store_name,d.district_name') ->field('b.id,b.store_id,b.name,b.img,a.type,b.phone,c.store_name,d.district_name,b.img')
->alias('a') ->alias('a')
->join('a_agents b', 'a.agents_id = b.id', 'LEFT') ->join('a_agents b', 'a.agents_id = b.id', 'LEFT')
->join("a_store c", "b.store_id = c.id", "left") ->join("a_store c", "b.store_id = c.id", "left")
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
namespace app\task\controller; namespace app\task\controller;
use app\api\untils\MessageUntils;
use app\api_broker\service\CallPhoneService; use app\api_broker\service\CallPhoneService;
use app\api_broker\service\ClientService; use app\api_broker\service\ClientService;
use app\api_broker\untils\PlsDemo; use app\api_broker\untils\PlsDemo;
...@@ -129,8 +130,18 @@ class PrivacyNumber ...@@ -129,8 +130,18 @@ class PrivacyNumber
return json_encode([ 'code' => 101, 'msg' => '参数错误' ]); return json_encode([ 'code' => 101, 'msg' => '参数错误' ]);
} }
if ($param['record_down'] == 1) { if ($param['record_down'] == 1) {
$where['record_down'] = 0; $where['record_down'] = 0;
$file_url = '/home/www/tl_estate/public/static/voice';
$space_voice = disk_free_space($file_url) + 1024*1024*1024*1; //1G容量保存
$space_voice_local = disk_total_space($file_url);
if ($space_voice >= $space_voice_local) {
$message = new MessageUntils();
$message->sendCCPSMS('13817616471', [], 427917);
return ;
}
} }
if ($param['record_down'] == 2) { if ($param['record_down'] == 2) {
......
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