|
|
@ -32,11 +32,9 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
public function push($GRI_SN=0, $vendor_str=null)
|
|
|
|
public function push($GRI_SN=0, $vendor_str=null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// log_message('error',"\n\n---------------------------------------------------PUSH------------------------------------------------------------\n");
|
|
|
|
|
|
|
|
$start_date = date('Y-m-d');
|
|
|
|
$start_date = date('Y-m-d');
|
|
|
|
$end_date = date('Y-m-d 23:59:59', strtotime("+2 months"));
|
|
|
|
$end_date = date('Y-m-d 23:59:59', strtotime("+2 months"));
|
|
|
|
$ready_to_send = $this->Group_model->get_plan_not_received(1, $GRI_SN, $vendor_str, $start_date, $end_date);
|
|
|
|
$ready_to_send = $this->Group_model->get_plan_not_received(1, $GRI_SN, $vendor_str, $start_date, $end_date);
|
|
|
|
// log_message('error',var_export($ready_to_send, 1));
|
|
|
|
|
|
|
|
if (empty($ready_to_send)) {
|
|
|
|
if (empty($ready_to_send)) {
|
|
|
|
return $this->output->set_output("empty");
|
|
|
|
return $this->output->set_output("empty");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -54,6 +52,7 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
public function verify_user()
|
|
|
|
public function verify_user()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
$open_id = $this->input->post('openId');
|
|
|
|
$open_id = $this->input->post('openId');
|
|
|
|
$open_key = $this->input->post('key');
|
|
|
|
$open_key = $this->input->post('key');
|
|
|
|
$match = $this->UserAuth_model->if_user_key($open_id, $open_key, 1);
|
|
|
|
$match = $this->UserAuth_model->if_user_key($open_id, $open_key, 1);
|
|
|
@ -80,6 +79,7 @@ class Index extends CI_Controller {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function uploadOperation()
|
|
|
|
public function uploadOperation()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
$input = $this->input->post();
|
|
|
|
$input = $this->input->post();
|
|
|
|
log_message('error',"Call [Tulanduo>uploadOperation]: " . json_encode($input));
|
|
|
|
log_message('error',"Call [Tulanduo>uploadOperation]: " . json_encode($input));
|
|
|
|
$ret['status'] = -1;
|
|
|
|
$ret['status'] = -1;
|
|
|
@ -123,6 +123,7 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
public function plan_confirm($input, $vps)
|
|
|
|
public function plan_confirm($input, $vps)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
$ret['status'] = -1;
|
|
|
|
$ret['status'] = -1;
|
|
|
|
$ret['errMsg'] = "";
|
|
|
|
$ret['errMsg'] = "";
|
|
|
|
$vendor_manager = $this->Group_model->get_vendorContact($input['openId']);
|
|
|
|
$vendor_manager = $this->Group_model->get_vendorContact($input['openId']);
|
|
|
@ -160,6 +161,7 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
public function fill_tourguide($input, $vps)
|
|
|
|
public function fill_tourguide($input, $vps)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
$ret['status'] = -1;
|
|
|
|
$ret['status'] = -1;
|
|
|
|
$ret['errMsg'] = "";
|
|
|
|
$ret['errMsg'] = "";
|
|
|
|
$eva = $this->Group_model->get_plan_eva($vps->VAS_SN);
|
|
|
|
$eva = $this->Group_model->get_plan_eva($vps->VAS_SN);
|
|
|
@ -198,6 +200,7 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
public function calc_key($userId, $key)
|
|
|
|
public function calc_key($userId, $key)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
$default = "b825e39422a54875a95752fc7ed6f5d2";
|
|
|
|
$default = "b825e39422a54875a95752fc7ed6f5d2";
|
|
|
|
$ret = md5(hash("sha256", $userId.$default));
|
|
|
|
$ret = md5(hash("sha256", $userId.$default));
|
|
|
|
return $ret;
|
|
|
|
return $ret;
|
|
|
|