39 行
1.6 KiB
PHP
可执行文件
39 行
1.6 KiB
PHP
可执行文件
<?php
|
|
|
|
namespace Common\Model;
|
|
//[1.4.13]
|
|
use Think\Model;
|
|
|
|
class RetailDeliveryConfigModel extends BaseModel
|
|
{
|
|
protected $tableName = 'retail_da_developer';
|
|
const ID = 'id';//int(11) NOT NULL AUTO_INCREMENT,
|
|
const DA_APP_KEY = 'app_key';//varchar(255) DEFAULT '' COMMENT '达达开发者app_key',
|
|
const DA_APP_SECRET = 'app_secret';//varchar(255) DEFAULT '' COMMENT '达达开发者app_secret',
|
|
const GOULD_KEY = 'gould_key';//varchar(255) DEFAULT '' COMMENT '高德地图key值',
|
|
const UU_APPID = 'uu_appid';//varchar(255) DEFAULT NULL COMMENT 'UU开发者appid',
|
|
const UU_IP = 'uu_ip';//varchar(255) DEFAULT NULL COMMENT 'UU开发者ip地址',
|
|
const UU_APP_KEY = 'uu_appkey';//varchar(255) DEFAULT NULL COMMENT 'UUappkey',
|
|
const ADD_TIME = 'addtime';//varchar(13) DEFAULT NULL COMMENT '时间',
|
|
/**
|
|
* 配送验证UU配送参数
|
|
*/
|
|
public function delivery_verify()
|
|
{
|
|
$delivery_config = $this->getFind();
|
|
if(empty($delivery_config)){
|
|
$res['status'] = 0;
|
|
$res['msg'] = '请先联系合伙人完善开发者信息';
|
|
return $res;
|
|
}
|
|
if(empty($delivery_config['uu_appid']) || empty($delivery_config['uu_ip']) || empty($delivery_config['uu_appkey'])){
|
|
$res['status'] = 0;
|
|
$res['msg'] = '请联系合伙人完善UU配送所需信息';
|
|
}else{
|
|
$res['status'] = 1;
|
|
$res['delivery_config'] = $delivery_config;
|
|
$res['msg'] = '验证成功';
|
|
}
|
|
return $res;
|
|
}
|
|
} |