Plugin Directory

Changeset 1973641


Ignore:
Timestamp:
11/13/2018 03:29:50 PM (7 years ago)
Author:
devnetvietnam
Message:

change id form order up v2.3.0.0

Location:
rms-interaction/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • rms-interaction/trunk/app/boot/FrontEnd.php

    r1969952 r1973641  
    3838    function javascript_variables(){
    3939        $referral_nickname = '';
    40         $arr_browsers = ["Firefox", "Chrome", "Safari", "Opera",
     40                $arr_browsers = ["Firefox", "Chrome", "Safari", "Opera",
    4141                    "MSIE", "Trident", "Edge"];
    4242 
     
    6464                break;
    6565        }
     66         
    6667        if(!isset($_SESSION['rms_referral'])){
    6768            if(isset($_COOKIE['rms_nickname'])){
  • rms-interaction/trunk/app/boot/RMSHook.php

    r1969952 r1973641  
    2424            // when update product/order
    2525            add_action( 'save_post', array(&$this,'save_post_hooking'), 10, 3 );
     26            add_action( 'publish_product', array(&$this, 'synchronize_list_product'), 10, 1);
    2627
    2728            // add metadata of product item in an order added_{$meta_type}_meta
     
    8384    {
    8485        $url      = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
     86
    8587        if($_REQUEST['rms']){
    8688            $url      = str_replace('&rms=' . $_REQUEST['rms'] , '',$url);
     
    8890            $url      = str_replace('?rms=' . $_REQUEST['rms'] , '',$url);
    8991        }
     92        if($_REQUEST['sharing']){
     93            $url      = str_replace('&sharing=' . $_REQUEST['sharing'] , '',$url);
     94            $url      = str_replace('?sharing=' . $_REQUEST['sharing'] . '&' , '?',$url);
     95            $url      = str_replace('?sharing=' . $_REQUEST['sharing'] , '',$url);
     96        }
     97        if($_REQUEST['brower']){
     98            $url      = str_replace('&brower=' . $_REQUEST['brower'] , '',$url);
     99            $url      = str_replace('?brower=' . $_REQUEST['brower'] . '&' , '?',$url);
     100            $url      = str_replace('?brower=' . $_REQUEST['brower'] , '',$url);
     101        }
     102        $url = rtrim($url, "/");
    90103
    91104        $validURL = str_replace("&", "&amp", $url);
     
    175188                    if($product->order_item_type !="line_item")
    176189                        continue;
    177 
     190                    $channel_name= strtoupper(str_replace('.','',$this->_get_channel_domain_name()));
    178191                    $item['price'] = $properties->product_line_subtotal/$properties->product_qty;
    179192                    $item['name']=$product->name;
    180193                    $item['image'] = wp_get_attachment_image_src( get_post_thumbnail_id( $properties->product_product_id ), 'single-post-thumbnail' )[0];
    181                     $item['code'] = $properties->product_product_id;
     194                    $item['code'] = $channel_name.'-WOO'.$properties->product_product_id;
    182195                    $infusion = get_post_meta($properties->product_product_id,'_infusion_tags',true);
    183196                    $order['infusion_tags']= array_merge($order['infusion_tags'],explode(',', $infusion));
     
    213226
    214227        }
     228    }
     229
     230    function synchronize_list_product($ID){
     231        $channel_name= strtoupper(str_replace('.','',$this->_get_channel_domain_name()));
     232        $product_woo = wc_get_product( $ID );
     233        $product['price'] = $_POST['_regular_price'];
     234        $product['description'] =wp_trim_words( $product_woo->get_description(), 40, '...' );
     235        $product['code']=$channel_name.'-WOO'. $ID;
     236        $product['image']="";
     237        $product['name']=$product_woo->get_name();
     238        $product['channel_id']=get_option('channel_id');
     239        $product['products'][]=$product;
     240        $con = new RMSConnector();
     241        $result = $con->synchronize($product);
    215242    }
    216243
  • rms-interaction/trunk/app/ctrs/MainCtr.php

    r1969952 r1973641  
    99namespace RMS\Ctrs;
    1010use RMSConnector;
     11use rmsApp;
    1112
    1213class MainCtr
     
    2122    function connect(){
    2223
     24        $update_version = new rmsApp();
     25        $update_datatable = $update_version->plugin_activate();
     26       
    2327        $data = $_POST['data'];
    2428        $con = new RMSConnector($data['rms_username'],$data['rms_password']);
  • rms-interaction/trunk/app/ctrs/OrderCtr.php

    r1969952 r1973641  
    2424        try{
    2525            $data = $_POST['data'];
     26            $channel_name= strtoupper(str_replace('.','',$this->_get_channel_domain_name()));
    2627
    2728            $con = new RMSConnector();
     
    6667            $product['image'] = '';
    6768            $product['name'] = $data['product'];
    68             $product['code'] ='FO'. $data['form_id'];
     69            $product['code'] =$channel_name.'-FO'.$data['form_id'];
    6970
    7071            if ($data['commission']!==''){
  • rms-interaction/trunk/app/ctrs/ProductCtr.php

    r1969952 r1973641  
    2727            $data = $_POST['data'];
    2828            $id =intval($items[sizeof($items)-1]->id);
    29             $id++;
    3029            $con = new RMSConnector();
    31             if($data['is_create']=='create'){
     30            if($data['is_create']=='created'){
     31
     32                $channel_name= strtoupper(str_replace('.','',$this->domain_name()));
     33
    3234                $product['price'] = $data['price'];
    3335                $product['description'] = $data['product_description'];
    34                 $product['code']='FO'. $id;
     36                $product['code']=$channel_name.'-FO'. $id;
    3537                $product['image']="";
    3638                $product['name']=$data['product'];
     
    5961        die();
    6062    }
     63
     64    function domain_name(){
     65        $website = $_SERVER['SERVER_NAME'];
     66        $patterns = array(
     67            '/http:\/\//',
     68            '/https:\/\//',
     69            '/www./',
     70            '/ /',
     71        );
     72        $str = preg_replace( $patterns, '',$website);
     73        $str = explode('/',$str);
     74        return $str[0]?$str[0]:'localhost';
     75    }
    6176}
  • rms-interaction/trunk/app/libs/RMSConnector.php

    r1969952 r1973641  
    127127                CURLOPT_CUSTOMREQUEST => "POST",
    128128            );
    129             
     129           
    130130            curl_setopt_array( $curl_handle, $options );
    131131            $response = curl_exec($curl_handle);
  • rms-interaction/trunk/assets/js/rms-order-form.js

    r1968094 r1973641  
    7676            postData['success'] = postData["success"].replace(/\\/gi,"");
    7777            postData.success = tinymce.get('success').getContent();
    78             if(postData.is_create=="update")
     78            if((postData.is_create=='update')||(postData.is_create=='create'))
    7979            e.ajax({
    8080                action: 'order_builder_save_rms',
     
    8383                if (result) {
    8484                    if (result.success) {
     85                        if(postData.is_create=='create'){
     86                            $("#is_create").val('created');
     87                            $("#setting_order_rms").submit();
     88                        }
     89
    8590                        alert('Cập nhật thành công');
    8691                        location.href = '/wp-admin/admin.php?page=rms-manage-form-order';
     
    177182            var index_row = 0;
    178183            var button_add = $("#meta_add");
    179             if (index==0) index_row=5; else index_row=parseInt(index)+5;
     184            if (index==0) index_row=7; else index_row=parseInt(index)+7;
    180185            $(button_add).click(function()
    181186            {
  • rms-interaction/trunk/assets/js/rms-synchronize-products.js

    r1968094 r1973641  
    33            event.preventDefault();
    44            var dataconnection = $("#setting_order_rms").serializeObject();
    5             if(dataconnection.is_create=="create")
     5            if(dataconnection.is_create=='created')
    66            jQuery.ajax({
    77                url: '/wp-admin/admin-ajax.php',
     
    1414                    },
    1515                success: function(result){
    16                     alert(result.message)
     16   
    1717                    if(result.success==true) {
    1818                        $("#is_create").val("update");
    19                         $("#setting_order_rms").submit();
    2019                    }else {
    21                         $("#is_create").val("create");
     20                        alert(result.message)
    2221                    }
    2322                }
     
    2827            event.preventDefault();
    2928            var dataconnection = $("#setting_order_rms").serializeObject();
    30             if(dataconnection.is_create=="create")
     29            if(dataconnection.is_create=='created')
    3130            jQuery.ajax({
    3231                url: '/wp-admin/options.php',
  • rms-interaction/trunk/error_rms.log

    r1968094 r1973641  
    1 [2018-09-25 14:15:54]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  BusinessException: Affiliate 'thanhphuc95it@gmail.com' not found.
    2 [2018-09-25 14:18:03]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"Phuc","phone":"0933393080","nickname":"thanhphuc","email":"thanhphuc.nt55@gmail.com","confirmed_email":"thanhphuc.nt55@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    3 [2018-09-25 14:18:26]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"Phuc","phone":"0933393080","nickname":"thanhphuc","email":"thanhphuc.nt55@gmail.com","confirmed_email":"thanhphuc.nt55@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    4 [2018-09-25 14:18:43]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"Thanh","phone":"0933393080","nickname":"thanhthanh","email":"thanhphuc.nt55@gmail.com","confirmed_email":"thanhphuc.nt55@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    5 [2018-09-25 14:19:04]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"Thanh","phone":"0933393080","nickname":"thanhthanh","email":"thanhphuc@yopmail.com","confirmed_email":"thanhphuc@yopmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    6 [2018-09-25 14:20:47]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"thanh","first_name":"thanh","phone":"0933393080","nickname":"thanhthanh","email":"thanhphuc.nt55@gmail.com","confirmed_email":"thanhphuc.nt55@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    7 [2018-09-25 16:32:15]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  BusinessException: Affiliate 'thanhphuc95it@gmail.com' not found.
    8 [2018-09-25 16:43:07]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"hoang","first_name":"thanh","phone":"0989738553","nickname":"hoangthanh","email":"thanhphuc@yopmail.com","confirmed_email":"thanhphuc@yopmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    9 [2018-09-25 16:43:14]403  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"hoang","first_name":"thanh","phone":"0989738553","nickname":"hoangthanh","email":"thanhphuc@yopmail.com","confirmed_email":"thanhphuc@yopmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  AccessDeniedException: Access is denied
    10 [2018-09-26 09:44:58]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"hoang","first_name":"th\u1ea1ch","phone":"091234567","nickname":"hoangthach","email":"hoangthach@yopmail.com","confirmed_email":"hoangthach@yopmail.com","password":"12345678","confirmed_password":"12345678","referrer":"","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  BusinessException: Can not find referrer ''
    11 [2018-09-26 11:10:36]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"thanh","first_name":"vu","phone":"0933345678","nickname":"thanhvu","email":"thanhvu@yopmail.com","confirmed_email":"thanhvu@yopmail.com","password":"12345678","confirmed_password":"12345678","referrer":"","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  BusinessException: Can not find referrer ''
    12 [2018-09-26 11:17:31]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"thanh","first_name":"vu","phone":"0912345678","nickname":"thanhvu","email":"thanhvu@gmail.com","confirmed_email":"thanhvu@gmail.com","password":"12345678","confirmed_password":"12345678","referrer":"","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  BusinessException: Can not find referrer ''
    13 [2018-09-26 11:27:20]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"thanh","first_name":"vu","phone":"093345677","nickname":"thanhvu","email":"thanhvu@yopmail.com","confirmed_email":"thanhvu@yopmail.com","password":"12345678","confirmed_password":"12345678","referrer":"","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  BusinessException: Can not find referrer ''
    14 [2018-09-26 11:41:12]400  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Nguyen","first_name":"Thien","phone":"01644700195","nickname":"thiennguyen","email":"thien1590@gmail.com","confirmed_email":"thien1590@gmail.com","password":"123456","confirmed_password":"123456","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  InvalidViewModelException: 'password' length must between 8 and 28 characters! &&
    15 [2018-09-26 11:41:24]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Nguyen","first_name":"Thien","phone":"01644700195","nickname":"thiennguyen","email":"thien1590@gmail.com","confirmed_email":"thien1590@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"thanhphucit.com"}  |  BusinessException: User email 'thien1590@gmail.com' already exists.
    16 [2018-10-16 23:10:29]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"phuc","phone":"933393080","nickname":"thanhphuc","email":"thanhphuc95it@gmail.com","confirmed_email":"thanhphuc95it@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"http:\/\/devnet.vn"}  |  BusinessException: User email 'thanhphuc95it@gmail.com' already exists.
    17 [2018-10-17 18:13:27]400  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"phuc","phone":"933393080","nickname":"  thanh   phuc   ","email":"thanhphuc95it@gmail.com","confirmed_email":"thanhphuc95it@gmail.com","password":"123","confirmed_password":"123","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"http:\/\/devnet.vn"}  |  InvalidViewModelException: 'password' length must between 8 and 28 characters! &&
    18 [2018-10-17 18:13:37]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"phuc","phone":"933393080","nickname":"  thanh   phuc   ","email":"thanhphuc95it@gmail.com","confirmed_email":"thanhphuc95it@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"http:\/\/devnet.vn"}  |  BusinessException: User email 'thanhphuc95it@gmail.com' already exists.
    19 [2018-10-17 18:13:51]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"phuc","phone":"933393080","nickname":"  thanh   phuc   ","email":"thanhphuc95it@gmail.com","confirmed_email":"thanhphuc95it@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"http:\/\/devnet.vn"}  |  BusinessException: User email 'thanhphuc95it@gmail.com' already exists.
    20 [2018-10-17 18:14:38]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Thanh","first_name":"phuc","phone":"933393080","nickname":"  thanh   phuc   ","email":"thanhphuc95it@gmail.com","confirmed_email":"thanhphuc95it@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/rmsplugin.local\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"http:\/\/devnet.vn"}  |  BusinessException: User email 'thanhphuc95it@gmail.com' already exists.
    21 [2018-10-18 15:44:07]422  |  http://stage.api.rms.com.vn:9090/v1/orders-  |  Error processing request param: Required request body is missing: public com.rms.rms.common.dto.ResponseDto com.rms.rms.controller.v1.OrderControllerV1.create(com.rms.rms.common.view_model.OrderCreateModel) throws com.rms.rms.common.exception.BusinessException
    22 [2018-10-18 15:45:31]400  |  http://stage.api.rms.com.vn:9090/v1/orders-{"nickname":"","discount_code":"","infusion_tags":[],"note":"","number":"SO230-1539852331","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  InvalidViewModelException: 'order_lines' can't be null or empty! &&
    23 [2018-10-18 15:48:35]400  |  http://stage.api.rms.com.vn:9090/v1/orders-{"nickname":"","discount_code":"","infusion_tags":[],"note":"","number":"SO231-1539852514","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  InvalidViewModelException: 'order_lines' can't be null or empty! &&
    24 [2018-10-18 15:55:08]400  |  http://stage.api.rms.com.vn:9090/v1/orders-{"nickname":"","discount_code":"","infusion_tags":[],"note":"","number":"SO232-1539852908","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  InvalidViewModelException: 'order_lines' can't be null or empty! &&
    25 [2018-10-18 15:56:50]400  |  http://stage.api.rms.com.vn:9090/v1/orders-{"nickname":"","discount_code":"","infusion_tags":[],"note":"","number":"SO233-1539853010","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  InvalidViewModelException: 'order_lines' can't be null or empty! &&
    26 [2018-10-18 16:08:48]400  |  http://stage.api.rms.com.vn:9090/v1/orders-{"nickname":"","discount_code":"","infusion_tags":[],"note":"","number":"SO234-1539853728","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  InvalidViewModelException: 'order_lines' can't be null or empty! &&
    27 [2018-10-19 17:02:25]400  |  https://api.rms.com.vn/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  Bad Request
    28 [2018-10-19 21:12:58]400  |  https://api.rms.com.vn/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  Bad Request
    29 [2018-10-19 21:13:08]400  |  https://api.rms.com.vn/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"123456789"}  |  Bad Request
    30 [2018-10-19 21:14:24]400  |  https://api.rms.com.vn/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  Bad Request
    31 [2018-10-19 21:30:39]401  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"oanh.bth35@gmail.com","password":"12345678"}  |  Unauthorized
    32 [2018-10-19 21:30:57]401  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"thanhphucnt55@gmail.com","password":"12345678"}  |  Unauthorized
    33 [2018-10-19 21:31:50]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"thanhphuc.dev@gmail.com","password":"12345678"}  |  BusinessException: User 'thanhphuc.dev@gmail.com' is inactive.
    34 [2018-10-19 21:51:39]422  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  BusinessException: User 'thanhphuc95it@gmail.com' not found.
    35 [2018-10-20 10:12:54]400  |  https://api.rms.com.vn/v1/shares/stats-{"nickname":"hoangoanh","url":"http:\/\/rmsplugin.local\/rms\/","click_info":{"country":"VN","device_type":"Desktop","os":"Mac OS X"}}  |  Bad Request
    36 [2018-10-22 09:10:03]422  |  http://stage.app.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"thanhphuc95it@gmail.com","password":"12345678"}  |  BusinessException: User 'thanhphuc95it@gmail.com' not found.
    37 [2018-10-22 21:18:27]400  |  https://api.rms.com.vn/v1/orders-{"nickname":"","discount_code":"","infusion_tags":["234-infu12","123-infusion"],"order_lines":[{"product":{"price":5500000,"name":"s\u1ea3n ph\u1ea9m 3","description":"","image":"http:\/\/rmsplugin.local\/wp-content\/uploads\/2018\/09\/Logo-DEVNET.png","code":"186"},"commission":0.3,"price":5500000,"quantity":"1"}],"note":"","number":"SO236-1540217906","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  Bad Request
    38 [2018-10-22 21:20:46]400  |  https://api.rms.com.vn/v1/orders-{"nickname":"","discount_code":"","infusion_tags":["234-infu12","123-infusion"],"order_lines":[{"product":{"price":5500000,"name":"s\u1ea3n ph\u1ea9m 3","description":"","image":"http:\/\/rmsplugin.local\/wp-content\/uploads\/2018\/09\/Logo-DEVNET.png","code":"186"},"commission":0.3,"price":5500000,"quantity":"1"}],"note":"","number":"SO237-1540218046","customer":{"fullname":"phuc Thanh","email":"oanh.bth35@gmail.com","phone":"933393080","address":"Nha Trang"},"channel_domain_name":"rmsplugin.local"}  |  Bad Request
    39 [2018-10-27 11:19:22]401  |  https://api.rms.com.vn/v1/shares/stats-{"nickname":"hoangoanh","url":"http:\/\/rmsplugin.local\/rms\/?sharing=2018-10-27_11-18-43am&ampbrower=Chrome","click_info":{"country":"VN","device_type":"Desktop","os":"Mac OS X"}}  |  Unauthorized
    40 [2018-10-27 11:21:15]401  |  https://api.rms.com.vn/v1/shares/stats-{"nickname":"hoangoanh","url":"http:\/\/rmsplugin.local\/rms\/?sharing=2018-10-27_11-18-43am&ampbrower=Chrome","click_info":{"country":"VN","device_type":"Desktop","os":"Mac OS X"}}  |  Unauthorized
    41 [2018-10-27 11:21:54]401  |  https://api.rms.com.vn/v1/affiliates/sign_in-{"email":"oanh.bth35@gmail.com","password":"12345678"}  |  Unauthorized
     1[2018-11-09 09:18:17]54  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"khoanguyen8947@gmail.com","password":"12345678"}  |  BusinessException: Affiliate 'khoanguyen8947@gmail.com' not found.
     2[2018-11-09 09:18:47]1051  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_up-{"last_name":"Phan","first_name":"Khoa","phone":"0978899101","nickname":"khongphan","email":"khoanguyen8947@gmail.com","confirmed_email":"khoanguyen8947@gmail.com","password":"12345678","confirmed_password":"12345678","terms":"1","login_url":"http:\/\/foxrain.com\/rms\/","fe_url":"http:\/\/stage.app.rms.com.vn","subscriber_domain_name":"miendatla"}  |  BusinessException: User email 'khoanguyen8947@gmail.com' already exists.
     3[2018-11-09 11:11:20]54  |  http://stage.api.rms.com.vn:9090/v1/affiliates/sign_in-{"email":"khoanguyen8947@gmail.com","password":"12345678"}  |  BusinessException: Affiliate 'khoanguyen8947@gmail.com' not found.
     4[2018-11-12 18:15:33]2052  |  http://stage.api.rms.com.vn:9090/v1/products/import-{"price":"100000","description":"","code":"FOXRAINCOM-FO2","image":"","name":"Kh\u00f3a h\u1ecdc","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a","products":[{"price":"100000","description":"","code":"FOXRAINCOM-FO2","image":"","name":"Kh\u00f3a h\u1ecdc","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a"}]}  |  BusinessException: Product code 'FOXRAINCOM-FO2' exist in channel '0937691d-0bcc-47f4-ad8e-473a810c7e7a'.
     5[2018-11-13 11:03:21]2052  |  http://stage.api.rms.com.vn:9090/v1/products/import-{"price":"10000000","description":"...","code":"FOXRAINCOM-FO6","image":"","name":"Kh\u00f3a h\u1ecdc","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a","products":[{"price":"10000000","description":"...","code":"FOXRAINCOM-FO6","image":"","name":"Kh\u00f3a h\u1ecdc","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a"}]}  |  BusinessException: Product code 'FOXRAINCOM-FO6' exist in channel '0937691d-0bcc-47f4-ad8e-473a810c7e7a'.
     6[2018-11-13 11:03:27]2052  |  http://stage.api.rms.com.vn:9090/v1/products/import-{"price":"10000000","description":"...","code":"FOXRAINCOM-FO6","image":"","name":"Kh\u00f3a h\u1ecdc","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a","products":[{"price":"10000000","description":"...","code":"FOXRAINCOM-FO6","image":"","name":"Kh\u00f3a h\u1ecdc","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a"}]}  |  BusinessException: Product code 'FOXRAINCOM-FO6' exist in channel '0937691d-0bcc-47f4-ad8e-473a810c7e7a'.
     7[2018-11-13 14:31:49]2052  |  http://stage.api.rms.com.vn:9090/v1/products/import-{"price":"100000","description":"..","code":"FOXRAINCOM-FO25","image":"","name":"khoa","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a","products":[{"price":"100000","description":"..","code":"FOXRAINCOM-FO25","image":"","name":"khoa","channel_id":"0937691d-0bcc-47f4-ad8e-473a810c7e7a"}]}  |  BusinessException: Product code 'FOXRAINCOM-FO25' exist in channel '0937691d-0bcc-47f4-ad8e-473a810c7e7a'.
  • rms-interaction/trunk/rms.php

    r1969952 r1973641  
    44Plugin URI: https://rms.com.vn
    55Description:
    6 Version: 2.1.0.0
     6Version: 2.3.0.0
    77Author: Referral Marketing Solution (RMS)
    88*/
Note: See TracChangeset for help on using the changeset viewer.